-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
159 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace = "default" | ||
|
||
[frontend] | ||
|
||
[backend] | ||
instances = [ "127.0.0.1:4000" ] | ||
selector-type = "random" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace = "ns2" | ||
|
||
[frontend] | ||
user = "xhe" | ||
|
||
[backend] | ||
instances = [ "127.0.0.1:7000" ] | ||
selector-type = "random" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
workdir = "./work" | ||
|
||
[proxy] | ||
addr = "0.0.0.0:6000" | ||
tcp-keep-alive = true | ||
max-connections = 1000 | ||
pd-addrs = "127.0.0.1:2379" | ||
# require-backend-tls = true | ||
# proxy-protocol = "v2" | ||
# graceful-wait-before-shutdown = 10 | ||
|
||
[metrics] | ||
|
||
[api] | ||
addr = "0.0.0.0:3080" | ||
enable-basic-auth = false | ||
user = "" | ||
password = "" | ||
|
||
[log] | ||
level = "info" | ||
encoder = "tidb" | ||
|
||
[log.log-file] | ||
filename = "" | ||
max-size = 300 | ||
max-days = 1 | ||
max-backups = 1 | ||
|
||
[security] | ||
rsa-key-size = 4_096 | ||
# tls object is either of type server, client, or peer | ||
# [xxxx] | ||
# ca = "ca.pem" | ||
# cert = "c.pem" | ||
# key = "k.pem" | ||
# auto-certs = true | ||
# skip-ca = trure | ||
# client object: | ||
# 1. requires: ca or skip-ca(skip verify server certs) | ||
# 2. optionally: cert/key will be used if server asks | ||
# 3. useless/forbid: auto-certs | ||
# server object: | ||
# 1. requires: cert/key or auto-certs(generate a temporary cert, mostly for testing) | ||
# 2. optionally: ca will enable server-side client verification. | ||
# 3. useless/forbid: skip-ca | ||
# peer object: | ||
# 1. requires: cert/key/ca or auto-certs | ||
# 2. useless/forbid: skip-ca | ||
|
||
# client object | ||
[security.cluster-tls] | ||
# access to other components like TiDB or PD, will use this | ||
# skip-ca = true | ||
|
||
# client object | ||
[security.sql-tls] | ||
# access to other components like TiDB or PD, will use this | ||
skip-ca = true | ||
|
||
# server object | ||
[security.server-tls] | ||
# proxy SQL or HTTP port will use this | ||
# auto-certs: true | ||
|
||
# peer object | ||
[security.peer-tls] | ||
# internal communication between proxies | ||
# auto-certs: true | ||
|
||
[advance] | ||
# ignore-wrong-namespace = true | ||
# peer-port = "3081" | ||
# watch-interval = "10m" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.