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

814 Коммитов

Автор SHA1 Сообщение Дата
Matt Lord 652b0da1b8
Release of v15.0.3 (#12767)
* Release notes for 15.0.3

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Release commit for 15.0.3

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Rename directory

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Update changelog/15.0/15.0.3/release_notes.md

Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>

---------

Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
Co-authored-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
2023-03-30 17:37:29 +02:00
Florent Poinsard 09e6a8e817
Merge pull request #11961 from planetscale/release-15.0-tag-1
Release of v15.0.2
2023-01-11 11:32:23 +01:00
vitess-bot[bot] 99a735ce51
[release-15.0] Fix rbac config in the vtop example (#12034) (#12038)
* feat: fix rbac config in the operator example

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

* feat: fix clusters value too

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>
2023-01-04 16:52:11 +05:30
Florent Poinsard a914f409c8 Release commit for 15.0.2
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-12-14 17:10:26 +01:00
Rameez Sajwani ae1141a24e
Release of v15.0.1 (#11847)
* Release notes for 15.0.1

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* Release commit for 15.0.1

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
2022-11-29 16:55:00 -08:00
Rameez Sajwani 9b901a1d64
Release of v15.0.0 (#11573)
* Release notes for 15.0.0

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* Release commit for 15.0.0

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
2022-10-25 19:30:22 +02:00
FlorentP b224593029
Increase the memory limit of the vitess-operator (#11548)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-10-20 10:29:26 -07:00
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 6e1aab8f03
feat: fix vtop example (#11546)
Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-10-20 15:02:08 +02: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
Rameez Sajwani be10ffbcd3
Release of v15.0.0-rc1 (#11443)
* Release notes for 15.0.0-rc1

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* Release commit for 15.0.0-rc1

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
2022-10-05 19:15:25 +02:00
Andrew Mason 68e5398008
[cli] [vtctl] Migrate all vtctl commands to `pflag` (#11320)
* [cli] [vtctl] Migrate all vtctl commands to `pflag`

Closes #11304.

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* fix test flags

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Handle subflag argument parsing without fully moving to cobra (yet!)

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* update examples

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* strip off double-dash

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Fix pflag getting tripped on shard 0 bounded shard names

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* remove commented-out code

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* update release notes

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* fix ExecuteHook, which takes no flags

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* add deprecation notice around interspersal

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* fix flags for vtctld2 web calls

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Run make web_build

Signed-off-by: notfelineit <notfelineit@gmail.com>

* test: fix vtctld_web_test

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

* update test assertions

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* just double-dash everything

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Run make web_build

Signed-off-by: notfelineit <notfelineit@gmail.com>

Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Co-authored-by: notfelineit <notfelineit@gmail.com>
Co-authored-by: deepthi <deepthi@planetscale.com>
2022-10-03 10:21:31 -07:00
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 1487772f3d
Fix vtcompose and docker-compose examples (#11188)
* feat: fix lvtctl script with the correct path to vtctlclient

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

* feat: fix client.go to use pflag

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

* feat: fix docker-compose examples to use double-dashed arguments

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

* feat: fix vtcompose to use plfags and set double dashed flags on vitess binaries

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

* feat: fix vtcompose test

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

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-09 11:49:35 +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
Manan Gupta 1632f96e7d
feat: augment local example with vtorc (#11155)
Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-09-01 22:49:10 +05:30
Matt Lord 94861104f7
Run latest gofmt on everything & address linter warnings (#11008)
* Run latest gofmt on everything & address linter warnings

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Rebuild proto impls with new protoc

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Field name is needed for zk

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Make protos with 1.18.4

Signed-off-by: Matt Lord <mattalord@gmail.com>

Signed-off-by: Matt Lord <mattalord@gmail.com>
2022-08-16 13:53:42 -07:00
Manan Gupta d87e713494
Fix VTop Example (#10687)
* feat: use the latest operator yaml file

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

* feat: add initial script for vtop example

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

* feat: add script to install kubectl and kind and add a github workflow

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

* feat: add code to verify vtadmin and vtorc are running correctly

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

* feat: add move tables and reshard part to the example

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

* feat: remove the inserted row in vtorc check so that move tables isn't affected

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

* feat: run the ci test outside docker and skip build since it is already done in a previous step

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

* feat: source build.env before running the test in ci

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

* feat: use custom image names in the test so as to not add image pull policies to the configuration

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

* ci: remove setup steps that aren't used

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

* feat: use the common files instead of creating new ones

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

* feat: increase timeout of the ci

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

* feat: turned off semi-sync for the test

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

* feat: insertion should be retried since VTOrc might take a few seconds to fix it

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

* feat: remove the workflow file since it is too heavy

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

* feat: add double dashed flags and remove configuration for ci

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

* feat: fix readme for cluster example

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

* feat: copy init_db.sql file to 101 yaml

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

* docs: fix comment in helper file

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-07-25 14:50:42 -07:00
Manan Gupta ed9e6e33f2
Deprecate enable-semi-sync in favour of RPC parameter (#10695)
* feat: deprecate enable_semi_sync flag

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

* docs: add the deprecation change to the summary

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

* test: fix test expectation for vttablet flags

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

* feat: fix cnf files to not mention the deprecated flag

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

* feat: remove enable_semi_sync from scripts of examples

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

* test: remove setting enable_semi_sync flag in testlib tests

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

* feat: remove enable_semi_sync from a bunch of tests

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

* test: refactor setup to take in durability policy instead of a boolean and add a test for cross cell durability policy

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

* feat: add cross cell durability policy to the docs

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

* feat: fix flag help output

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

* test: we shouldn't remove enable_semi_sync from tests which are testing upgrades

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-07-22 21:35:15 +05:30
Matt Lord a1f1f12be8
Delete all legacy sharding related code (#10278)
* Delete all legacy sharding related code

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Move used until functions from initialsharding to cluster

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Remove vtctl commands

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Kill vtworker and SetKeyspaceServedFrom cmd

Signed-off-by: Matt Lord <mattalord@gmail.com>

* WaitForDrain related stragglers

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Legacy local straggler workflow

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Get rid of SetKeyspaceShardingInfo & wait for drain stragglers

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Remove vtworker stragglers

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Update throttlerservice protobuf

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Rename test 24, add hashicorp vault test to it (now mysql_server_vault)

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Remove last mentiones of legacy sharding in vtctl

Signed-off-by: Matt Lord <mattalord@gmail.com>

* remove binlog_use_v3_resharding_mode

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Address review comments

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Address review comments

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Correct vtgate help output

Signed-off-by: Matt Lord <mattalord@gmail.com>
2022-07-07 13:52:32 -04:00
yohei yoshimuta ea3308750a
Fix examples/compose/docker-compose.yml to run healthy vttablets (#10597)
* examples/compose: Set keyspace durability policy to help vtorc recognize vttablets

Signed-off-by: yoheimuta <yoheimuta@gmail.com>

* Move SetKeyspaceDurabilityPolicy commands to a more appropriate place.

Signed-off-by: yoheimuta <yoheimuta@gmail.com>

* Add a set_keyspace_durability_policy container to docker-compose.beginners.yml

Signed-off-by: yoheimuta <yoheimuta@gmail.com>

* Adjust a generated docker-compose.yml by vtcompose/vtcompose.go to work

Signed-off-by: yoheimuta <yoheimuta@gmail.com>

* Tweak docker-compose.beginners.yml to use the environment variable

Signed-off-by: yoheimuta <yoheimuta@gmail.com>

* Fix a gofmt error

Signed-off-by: yoheimuta <yoheimuta@gmail.com>
2022-07-07 14:53:47 +05:30
Matt Lord 7e9818f7a0
Halve request and double limit for RAM in the example cluster (#10450)
* Halve request and double limit for RAM in the example cluster

1. We don't need/want everything to have guaranteed QoS (request == limit)
2. It's common for mysqld (especially 8.0) to go beyond the old limit
   and end up in a crash loop

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Use consistent requests,limits ordering in yaml

Signed-off-by: Matt Lord <mattalord@gmail.com>
2022-06-06 17:00:09 -07:00
Manan Gupta 67944bbe39
Use Durability Policy in the topo server in VTOrc and deprecate Durability config (#10423)
* feat: store keyspace information in the vtorc database

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

* feat: add code for refreshing keyspaces

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

* feat: remove the durability config from VTOrc and instead use the durability stored in the topo server

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

* test: remove usage of Durability config from the tests

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

* test: add a new test for checking that VTOrc works with keyspaces having different durability policies and verify it failed previously

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

* feat: remove usage of durability config in examples

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

* test: parallel execution of test causes data race

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

* feat: add warning if no durability is specified

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-06-06 11:44:58 -07:00
Andrew Mason 915fbc33dc
Add vtadmin to local example by default (#10430)
Signed-off-by: Andrew Mason <andrew@planetscale.com>
2022-06-05 12:30:58 +02:00
Manan Gupta e928c4a914
Refactor Durability Policy implementation and usage to read the durability policy from the keyspace (#10375)
* feat: export the durabler interface and its methods

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

* feat: add function to get a durability policy

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

* feat: add a durability parameter to the exported durability functions, and pass nils from all the places calling it

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

* test: fix the durability tests to reflect the new changes

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

* feat: fix PlannedReparentShard to get the durability policy and use it instead of relying on the global policy

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

* feat: fix EmergencyReparentShard to get the durability policy and use it instead of relying on the global policy

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

* feat: fix all places other than vtorc using durability_policies

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

* feat: remove use of SetDurabilityPolicy

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

* feat: remove setdurabilitypolicy function

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

* feat: fix VTOrc to store its global durability policy separately

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

* docs: fix case of a comment

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

* test: fix vtorc tests

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

* feat: fail if durability policies don't match

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

* test: set the correct durability_policy for the keyspaces in vtorc tests

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

* test: set the correct durability_policy for the keyspace in TestSemiSync

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

* test: set the correct durability_policy for the keyspaces in reparent tests

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

* test: set the correct durability_policy for the keyspaces in backup tests

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

* test: set the correct durability_policy for the keyspaces in recovery tests

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

* test: set the correct durability_policy for the keyspace in initialization test for ERS

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

* test: set the correct durability_policy for the keyspaces in sharding tests

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

* test: set the correct durability_policy for the keyspaces in vault tests

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

* feat: add commands to set the correct durability_policy in local and legacy_local examples

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

* test: set the correct durability_policies for the unit tests

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

* test: fix upgrade test for initialization in ers

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-06-03 11:11:31 +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
Manan Gupta 21c9b7152d
feat: fix commands in readme files to use double dashes for arguments (#10389)
Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-05-31 11:45:12 -07:00
Matt Lord 1de839e76e
Ensure all legacy sharding commands are clearly deprecated (#10281)
* Ensure all legacy sharding commands are clearly deprecated

Then they can be removed in v15

* Add deprecation notice for related flags

* Move single dashes to double in edited files

* Adjust vttablet --help output test

* Document new default in command help output

* Correct vttablet_process printf that I noticed in a test flake
2022-05-25 18:40:42 -04:00
Andrew Mason cdd4acdb84
[vtadmin] reparenting actions (#10351)
* Add protos for remaining reparent actions and run generators

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Initial reparent-actions implementations

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Add pools and configs for reparent operations

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Update impls to use new pools

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* jk, TER only updates the topo

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Add http wrappers

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Add unit tests

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Update local rbac to allow reparents

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2022-05-21 15:10:19 -04:00
Manan Gupta 7197d25f13
Revert semi_sync change to reintroduce enable_semi_sync and remove durability_policy (#10201)
* feat: revert semi_sync change

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

* feat: remove the durability_policy flags usage from vtctld vtctl and vtworker

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

* feat: fix remaining function and reintroduce the test

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

* test: skip the tests in ers that rely on the durability_policy being specified correctly

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

* test: remove the usage of durability_policy from all the tests

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

* feat: remove the deprecation notice from the enable_semi_sync flag

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

* test: fix the flags test expectation

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-05-10 06:04:59 +05:30
doeg 6bcc5faffa
Remove vtadmin-down.sh from teardown.sh (#10136)
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
2022-04-25 09:33:41 -04:00
doeg b211c7bd73
Improve vtadmin-{up,down}.sh scripts for the local example (#10081)
Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
2022-04-20 12:22:20 -04:00
Matt Lord 93f4490910
VReplication: use db_filtered user for vstreams (#10080)
This way vreplication is using the same user on the source (streamer) and
target (player).

And set the filtered user config in the binlog server streamer and
the tabletmanager restore.

Signed-off-by: Matt Lord <mattalord@gmail.com>
2022-04-20 09:57:49 -04:00
Andrew Mason 2d1681a98c
[vtadmin] grpc healthserver + channelz (#10038)
* Add `--rbac` to example vtadmin-up

This was introduced and made a required flag (with mutually-exclusive `--no-rbac`)
in https://github.com/vitessio/vitess/pull/9972.

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Cleanup `Options.Services`, and inspect the ServiceInfo() directly

Instead of requiring users to know in advance (and put into their startup
scripts), which services will run, we can (correctly) inspect the service
names that have been registered on the underlying grpc.Server and mark
them as SERVING in the health service.

_Alsooooo_, this was never bound to a flag, so users couldn't use it
anyway! Whoops.

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Provide option to enable channelz service

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Add flag to enable channelz

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Tidy up flags; label all sections

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Add missing flag for AllowTracing

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2022-04-05 11:16:19 -04:00
FlorentP 5712981588
Remove the `Gateway` interface (#9852)
* refactor: removed the Gateway interface

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* refactor: removed gateway implementation flag

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* refactor: remove gateway_implementation usages

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* merge upstream/main

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix: revert unwanted change

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix: update TabletRouting documentation

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix: remove unused function waitTillAllTabletsAreHealthyInVtgate

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* removed: unrequired tests in tabletgateway

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix: applied review suggestions

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* chore: removed outdated sections in TabletRouting.md

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

Co-authored-by: Andres Taylor <andres@planetscale.com>
2022-03-31 16:12:36 +02:00
Manan Gupta d0fd6b0e39
Flakiness fix for Upgrade Downgrade Backup Manual test (#9957)
* feat: wait for the replica to finish restoring before calling InitShardPrimary to ensure it sets semi-sync correctly

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

* feat: have a common timeout for all the tablets instead of 300 per tablet

Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-03-25 16:34:15 +05:30
Vicent Marti af20621065 tools: rename interface{} to any in codegen
Signed-off-by: Vicent Marti <vmg@strn.cat>
2022-03-22 09:39:55 +01:00
Vicent Marti 0f2ecedf58 ci: remove remaining references to `go get -u`
Signed-off-by: Vicent Marti <vmg@strn.cat>
2022-03-17 10:40:20 +01:00
Andrew Mason 13a319b4a0
Migrate remaining vtctldclient commands in local example (#9894)
* Migrate remaining vtctldclient commands in local example

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Missed some extra `Apply(V)Schema` calls

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2022-03-16 10:38:50 -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
cui fliter f54502082d
all: fix some typos (#9815)
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-03-03 07:44:26 -08:00
Andrew Mason f8851327fe
Add consul-topo for local example (#9806)
* Add consul-topo for local example

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Bash tricks!

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Add consul topo to local example CI matrix

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2022-03-01 16:04:22 -05:00
Andrew Mason 8f1079efa8
Merge pull request #9615 from pjambet/fix-to-bytes-for-demo
demo.go: fix call to ToBytes
2022-02-23 12:35:45 -05:00
Florent Poinsard 925fde5c4f
Use latest vtop example CRDs and fix do_release script for vtop
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-02-21 16:07:07 +01:00
Deepthi Sigireddi 3ffaf9f100
Merge pull request #9429 from vitessio/dependabot/go_modules/examples/are-you-alive/gopkg.in/yaml.v2-2.2.8
build(deps): bump gopkg.in/yaml.v2 from 2.2.5 to 2.2.8 in /examples/are-you-alive
2022-02-07 14:00:15 -08:00
Pierre Jambet 9228343b21 demo.go: fix call to ToBytes
The return value was changed from `[]byte` to `([]byte, error)` a little
while ago, making it impossible to run the demo.

This handles the error and returns nil after logging the error in case
the conversion fails.

Signed-off-by: Pierre Jambet <pierre.jambet@gmail.com>
2022-02-01 16:32:50 -05:00
FlorentP d1a1a97048
Merge pull request #9582 from planetscale/update-vtop-examples
Changed vitess operator examples to use `latest` on main
2022-01-31 10:55:12 +01:00