Skip to content

Instantly share code, notes, and snippets.

@carlsverre
Created July 16, 2021 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlsverre/73a93c14ba6ad47ed923c2464b5a4199 to your computer and use it in GitHub Desktop.
Save carlsverre/73a93c14ba6ad47ed923c2464b5a4199 to your computer and use it in GitHub Desktop.
Setup HTTP api on all SingleStore Aggregators
sdb-admin list-nodes --role aggregator -q \
| xargs -I NODEID sdb-admin -y update-config --memsql-id NODEID --key http_api --value on
sdb-admin list-nodes --role aggregator -q \
| xargs -I NODEID sdb-admin -y update-config --memsql-id NODEID --key http_proxy_port --value <port>
sdb-admin list-nodes --role aggregator -q \
| xargs -I NODEID sdb-admin -y query --memsql-id NODEID --sql "RESTART PROXY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment