ce558fc4aa
* Add RebuildKeyspaceGraph Signed-off-by: notfelineit <notfelineit@gmail.com> * Run lint:prettier:fix Signed-off-by: notfelineit <notfelineit@gmail.com> * Connect to backend Signed-off-by: notfelineit <notfelineit@gmail.com> * Add skeleton for RemoveKeyspaceCell Signed-off-by: notfelineit <notfelineit@gmail.com> * Add javascript equivalent of removeKeyspaceCell Signed-off-by: notfelineit <notfelineit@gmail.com> * Connect remove keyspace cell in UI Signed-off-by: notfelineit <notfelineit@gmail.com> * Run prettier Signed-off-by: notfelineit <notfelineit@gmail.com> * Add skeleton of create shard Signed-off-by: notfelineit <notfelineit@gmail.com> * Connect CreateShard to UI Signed-off-by: notfelineit <notfelineit@gmail.com> * Use underscores and fix lint issue Signed-off-by: notfelineit <notfelineit@gmail.com> * Remove unused component Signed-off-by: notfelineit <notfelineit@gmail.com> * Run prettier Signed-off-by: notfelineit <notfelineit@gmail.com> * Restart the build Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Signed-off-by: notfelineit <notfelineit@gmail.com> * Undo changes to unrelated protos Signed-off-by: notfelineit <notfelineit@gmail.com> Signed-off-by: notfelineit <notfelineit@gmail.com> Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr> Co-authored-by: Florent Poinsard <florent.poinsard@outlook.fr> |
||
---|---|---|
.. | ||
cache | ||
cluster | ||
credentials | ||
debug | ||
errors | ||
grpcserver | ||
http | ||
internal | ||
rbac | ||
sort | ||
testutil | ||
vtadminproto | ||
vtctldclient | ||
vtsql | ||
README.md | ||
api.go | ||
api_authz_test.go | ||
api_test.go | ||
debug.go |
README.md
VTAdmin
VTAdmin is an experimental replacement for the vtctld2 web UI, that also allows users to manage multiple Vitess clusters from a single API and web UI.
For a more detailed writeup, refer to the original RFC.
Setup
The simplest VTAdmin deployment involves a single Vitess cluster. You can look
at the local example for a
minimal invocation of the vtadmin-api
and vtadmin-web
binaries.
Important vtadmin-api
flags
Please refer to vtadmin --help
for the full listing, but a few flags warrant
explanation here.
-
--http-origin
— this flag sets up the allowed CORS origins thatvtadmin-api
will serve HTTP requests for, and is required if you are (very likely) runningvtadmin-api
andvtadmin-web
on different domains. -
--cluster
,--cluster-defaults
— A DSN-style flag that allows cluster configuration options to be specified on the command-line rather than needing a config file. When both command-line cluster configs and a config file are provided, any options for a given cluster on the command-line take precedence over options for that cluster in the config file.For a description of the cluster configuration options, see clusters.example.yaml.
-
--http-tablet-url-tmpl
— Go template string to generate a reachable http(s) address for a tablet, used to make passthrough requests to/debug/vars
endpoints.
Development
Building vtadmin-api
If you are making changes to .proto
files, make sure you run
source dev.env
make proto grpcvtctldclient vtadmin_web_proto_types
Then, you can run make build
, and run ./bin/vtadmin
with any flags you need
(see the local example, and also the section on flags above).
Building and running vtadmin-web
Make sure you are using node version 16.x.
Then, you may run:
cd ./web/vtadmin
npm install
# This should be the address you passed to `./vtadmin --addr`. For example,
# "http://127.0.0.1:14200".
export REACT_APP_VTADMIN_API_ADDRESS="${vtadmin_api_addr}"
export REACT_APP_ENABLE_EXPERIMENTAL_TABLET_DEBUG_VARS="true"
npm run start