Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli/flags,config: new flag for tenant KV listen addr
This patch introduces the ability to split off the tenant KV server into a separate port, using the new command-line flag `--tenant-addr`. This is motivated primarily by security concerns. We plan to use different TLS configs for KV<->KV kv/replication/gossip traffic and SQL<->KV tenant kv traffic. The easiest way to facilitate this is to listen to tenant KV traffic on a separate port and separate gRPC server. The `--tenant-addr` and `--advertise-tenant-addr` flags are inspired by the `--sql-addr` and `--advertise-sql-addr` flags. The two pairs have similar fallback behavior, as is discussed in depth in 6cb71bf. This commit gets as far as, but down not introduce, the gRPC server split. It leaves a TODO where that will be needed (in `Server.startListenRPCAndSQL`).
- Loading branch information