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

19 Коммитов

Автор SHA1 Сообщение Дата
Manan Gupta e18bec45ca
[15.0] Add VTGate debug/status page link to VTAdmin (#11541)
* feat: add hyperlink using fqdn in vtgates

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

* feat: provide correct vtgate web address in examples

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

* refactor: fix prettier errors

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-10-20 10:28:08 -07:00
Manan Gupta cda953a145
feat: give all permissions in rbac in examples (#11463) (#11469)
Signed-off-by: Manan Gupta <manan@planetscale.com>

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-10-12 12:42:42 +05:30
Manan Gupta e7f98f859c
VTOrc Cleanup - Configs, APIs and old UI (#11356)
* feat: remove configurations that aren't needed like raft and initialization of database

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

* feat: use waitreplicastimeout for all timeouts related to waiting for execution on a replica

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

* feat: remove agents in vtorc since we don't use them

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

* feat: remove more unused configurations

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

* feat: cleanup post and pre processes that VTOrc doesn't intend to support

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

* feat: remove unused code and config for shell process

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

* feat: remove unused configurations

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

* feat: convert flags to pflag architecture

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

* feat: remove cli flags which aren't required

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

* feat: remove more unused configs

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

* feat: remove the old UI of orchestrator and cleanup app and http packages

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

* feat: remove web/vtorc files and fix Dockerfiles to not try to copy them

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

* feat: fix all the examples to not pass in the ListenAddress and not export port for the old UI

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

* feat: remove raft code and command applier

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

* feat: remove unused code and configs

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

* feat: remove more unused code

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

* feat: remove http configs that are no longer required

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

* feat: remove more unused configs and dead code

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

* feat: remove more unused configs

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

* feat: remove access tokens since they are unused

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

* feat: remove RecoveryPeriodBlockMinutes which was only for backward compatibility

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

* feat: remove unused package

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

* feat: remove replicas in instance since they weren't used anywhere

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

* feat: copy over vtorc things that vtgr was using to remove vtgr's dependency on vtorc package

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

* feat: change restart function to use tmc rpc calls

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

* feat: remove detection queries for vtorc since we read these from topo-server

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

* feat: improve read topology test to also verify the errantGTID set

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

* feat: use internal function to find difference in gtid sets instead of using the MySQL connection

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

* feat: remove population of group replication information

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

* feat: remove configs related to connecting to MySQL instances since it is no longer required

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

* feat: remove code to connect to MySQL backend since VTOrc now only uses SQLite3

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

* cleanup: go mod tidy

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

* feat: remove unused/redundant flags, we are down to 0 :)

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

* feat: remove filtering configs

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

* feat: remove write buffering and associated config parameters

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

* feat: remove more miscellaneous configs

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

* feat: remove one more rejection parameter

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

* feat: move discovery queue parameters to be constants

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

* feat: move some more configs to be constants

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

* feat: add flags for all the configurations we have kept

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

* feat: fix imports in main.go

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

* test: fix vtorc test output after so many changes

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

* feat: add release-notes docs for config changes

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

* feat: remove index definitions for tables that are already deleted

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

* feat: add API removal documentation as well to release notes

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

* feat: remove duplication of debug pages in release notes

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

* feat: use some flags in e2e test to verify they work

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

* feat: use sliceVar for the flag definition of cluster_to_watch

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-30 22:11:02 +05:30
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
Manan Gupta 02a20013c0
Introduce `servenv` status pages in VTOrc (#11263)
* docs: fix logging in vtorc http

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

* feat: add servenv and required flags to vtorc

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

* feat: add vtorc port to local and region sharding example

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

* test: add vtorc to flag help test

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

* feat: simplify vtorc parsing of flags

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

* feat: add redirect for unrecognized paths to /debug/status to vtorc

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

* feat: add a component to debug/status page of vtorc to display recent recoveries

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

* feat: simplify a condition in vtorc

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

* feat: fix command used for invoking vtorc

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

* feat: remove adding help flag and let servenv handle it

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

* feat: add vtorc servenv page to docker-compose example too

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

* feat: add prometheus plugin like we do for other binaries

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

* feat: change vtorc debug port to not conflict with vttablet's port

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

* feat: fix year in file license

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

* docs: add summary docs

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-22 10:48:45 +05:30
Manan Gupta c0063166cd
Refactor: Rename Orchestrator to VTOrc in the codebase (#11231)
* feat: rename orchestrator package to vtorc

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

* feat: rename web/orchestrator to web/vtorc

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

* feat: changed usage of orchestrator to vtorc

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

* feat: changed usage of Orchestrator to VTOrc

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

* feat: refactor function names to move from orchestrator to vtorc

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

* test: fix function name

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

* feat: change Vtorc to VTOrc

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

* feat: fix static check failures for not catching errors

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

* feat: create a symbolic link for web/vtorc

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

* feat: add web/vtorc to docker images and use it in the examples

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

* feat: rename orchestrator to vtorc in examples

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

* feat: rename VtOrc to VTOrc

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

* feat: remove redundant retrun statements

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-18 14:37:31 +05:30
Manan Gupta d96d02e348
feat: add vtorc and vtadmin region example (#11172)
Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-07 19:00:23 +05:30
Matt Lord d0a2245bbc
Update vtctl help output to use double dashes for long flag names (#10405)
* Update vtctl help output to use double dashes for long flag names

* Update any spots missed in examples

* Catch any missed spots in tests

Signed-off-by: Matt Lord <mattalord@gmail.com>
2022-06-01 21:15:15 -04:00
Deepthi Sigireddi 961864d872
Examples: fix warnings (#9875)
* vtctldclient: fix panic from ApplyVschema

Signed-off-by: deepthi <deepthi@planetscale.com>

* examples/local: fix flag warnings

Signed-off-by: deepthi <deepthi@planetscale.com>

* examples/legacy_local: fix flag warnings

Signed-off-by: deepthi <deepthi@planetscale.com>

* examples/region_sharding: fix flag warnings

Signed-off-by: deepthi <deepthi@planetscale.com>

* address review

Signed-off-by: deepthi <deepthi@planetscale.com>
2022-03-14 10:27:27 -04:00
deepthi a49702d9f9 more master->primary changes in docs, tests, functions and variables.
Use new flags for vtctl commands.

Signed-off-by: deepthi <deepthi@planetscale.com>
2021-08-10 19:52:24 -07:00
Rohit Nayak d54078279b
Change master to primary in examples:local,legacy_local,region_sharding
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2021-08-08 17:47:56 +02:00
Rohit Nayak 0dc39eb932
Change local example to use v2 vreplication flows
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2021-07-27 22:01:06 +02:00
deepthi e196e1debe CI: run failing tests in docker, temporarily delete mariadb102 unit test
Signed-off-by: deepthi <deepthi@planetscale.com>
2021-04-14 12:58:04 -07:00
deepthi 51e265155b examples: source correct shell script in README
Signed-off-by: deepthi <deepthi@planetscale.com>
2021-03-25 11:31:41 -07:00
deepthi 575a9aa5af region_sharding: create lookup table is optional
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-08-17 08:53:17 -07:00
deepthi 1653579180 region_sharding: working resharding example
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-08-14 06:09:20 -07:00
deepthi 17ef346409 show vitess_tablets should show new master's timestamp after reparenting
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-06-09 19:30:21 -07:00
deepthi 6a2d6141ec fix path to json file
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-05-28 17:37:28 -07:00
deepthi 0fdf9e0438 region sharding example
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-05-20 17:24:31 -07:00