Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Manan Gupta 03a9b0e274
Fix local example scripts (#11319)
* feat: fix 101_initiail_cluster to not run PRS, but instead wait for tablets to be up and primary promotion by vtorc

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: fix remaining binaries in local examples to not call ISP at all and instead rely on VTOrc to elect a primary

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: fix region-sharding example too to not call ISP

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: use _ instead of i in for loop since i is unused

Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-23 09:44:02 +05:30
Andrew Mason 05b68637a8 Migrate InitShardMaster=>InitShardPrimary to VtctldServer, update examples
There are no functional changes in this commit, just a pure port with
the most minor changes to ensure identical behavior (like the callback
logger).

I also updated our `proto` target to assume a standard protoc
installation (which installs a stdlib of well-known types into
/usr/local/include). We can decide if this is okay to make a
requirement, or if we should try to make this more portable in PR
review.

I also updated the local example to use the vtctldclient port, and went
through the full example with no issues.

Signed-off-by: Andrew Mason <amason@slack-corp.com>
2021-01-13 21:10:11 -05:00
Morgan Tocker 6f5c62f50c Harmonize local examples with helm improvements
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-04-15 21:40:04 -06:00
Rohit Nayak 3da09af00d
Modify local example to use new vreplication workflows
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-04-05 00:08:14 +02:00
Morgan Tocker 690a4f452d Fix client_test
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 14:53:55 -08:00
Morgan Tocker aa3ab37b3a Remove sleep calls from scripts, cleanup
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 13:40:13 -08:00
Morgan Tocker 2b743fdbaa More refactoring
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 12:24:58 -08:00
Morgan Tocker 4979d1cc6c More refactoring
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 12:24:10 -08:00
Morgan Tocker fd28018e72 Merge branch 'morgo-refactor-examples' of github.com:planetscale/vitess into morgo-refactor-examples
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 11:45:11 -08:00
Morgan Tocker c2f2dc936c WIP - refactor examples
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 11:31:48 -08:00
Morgan Tocker 631322d5c0 WIP - refactor examples
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2020-02-08 11:13:21 -08:00
Morgan Tocker bfcf8a6951 vttablet-up and vtgate-up to block until ready
shellcheck is temporarily disabled due to https://github.com/vitessio/vitess/issues/5305

No new shellcheck issues should be introduced, but there are existing
problems with vtgate-up.sh and vttablet-up.sh which are not addressed.

Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-10-25 11:34:20 -06:00
tanjunchen 78197479f4 update license in example/ config/ data/ doc/ docker/
Signed-off-by: tanjunchen <2799194073@qq.com>
2019-10-22 13:51:38 +08:00
deepthi d97a1942d5 shellcheck fixes
Signed-off-by: deepthi <deepthi@planetscale.com>
2018-12-07 12:20:23 -08:00
deepthi 2be922a20c add mysql helper script to local example, remove calls to mysql from scripts, they will be executed by the user using lmysql.sh
Signed-off-by: deepthi <deepthi@planetscale.com>
2018-12-07 11:16:37 -08:00
deepthi 06cb4f4ab7 use auth=none for vtgate, move sql scripts to common location
Signed-off-by: deepthi <deepthi@planetscale.com>
2018-12-07 10:14:46 -08:00
deepthi c16933eb5f remove unused files, add sql scripts to show intermediate and final results of resharding
Signed-off-by: deepthi <deepthi@planetscale.com>
2018-12-06 16:27:52 -08:00
deepthi e2ffdb228d add descriptive comments to scripts, add etcd option, set MYSQL_FLAVOR is it isn't already set
Signed-off-by: deepthi <deepthi@planetscale.com>
2018-12-06 12:45:09 -08:00
deepthi 54299e34f4 adapt helm example to run locally
Signed-off-by: deepthi <deepthi@planetscale.com>
2018-12-05 17:58:59 -08:00