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

801 Коммитов

Автор 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
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
Deepthi Sigireddi 51639e8fe7
Merge pull request #9579 from planetscale/local-example-add-durability-flag
Add durability flag in local examples
2022-01-28 12:29:19 -08:00
Florent Poinsard c18b2fcfbf
Changed vitess operator examples to use latest on main
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-01-28 11:20:43 +01:00
Manan Gupta b08ac5b38b feat: use PlannedReparentShard for initialization in the local example
Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-01-28 12:35:36 +05:30
Manan Gupta 988a8396d9 feat: add durability_policy flag to starting of vtctld in examples where semi_sync is enabled
Signed-off-by: Manan Gupta <manan@planetscale.com>
2022-01-28 12:23:15 +05:30
deepthi d86c9259bc examples: how to use mysql80 images with operator
Signed-off-by: deepthi <deepthi@planetscale.com>
2022-01-27 16:07:57 -08:00
Florent Poinsard da541cdc7e
refactor: simplify how we create the vitess cluster
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-01-27 11:56:09 +01:00
Florent Poinsard 1c7dd68957
feat: removed debugging tweaks and fixed how stderr redirection is done in bash
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-01-26 12:54:13 +01:00
Florent Poinsard a7737cb23a feat: print stderr when asserting restore
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-01-26 10:10:02 +01:00
Florent Poinsard 5601323faf
debug vttablet startup output
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-01-25 18:08:46 +01:00
Florent Poinsard 03f314010a feat: simplified the manual end-to-end backup test
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-01-25 06:57:34 +01:00
deepthi 01ce875ede naming: delete old code that was needed for version compatibility + a few other fixes
Signed-off-by: deepthi <deepthi@planetscale.com>
2022-01-14 16:17:09 -08:00
Deepthi Sigireddi 1dfc35bfab
Merge pull request #9454 from arvind-murty/am-naming-compose
Changed master to primary
2022-01-11 21:09:50 -08:00
notfelineit de12f25ae2 Undo strange merge in env.sh
Signed-off-by: notfelineit <notfelineit@gmail.com>
2022-01-05 16:13:52 -08:00