mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
functional: add snapshot path to configuration
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
fdf4a12d3c
commit
4e7705e9e5
@ -2,15 +2,15 @@ agent-configs:
|
|||||||
- etcd-exec-path: ./bin/etcd
|
- etcd-exec-path: ./bin/etcd
|
||||||
agent-addr: 127.0.0.1:19027
|
agent-addr: 127.0.0.1:19027
|
||||||
failpoint-http-addr: http://127.0.0.1:7381
|
failpoint-http-addr: http://127.0.0.1:7381
|
||||||
base-dir: /tmp/etcd-agent-data-1
|
base-dir: /tmp/etcd-functional-1
|
||||||
etcd-log-path: /tmp/etcd-agent-data-1/current-etcd.log
|
etcd-log-path: /tmp/etcd-functional-1/current-etcd.log
|
||||||
etcd-client-proxy: false
|
etcd-client-proxy: false
|
||||||
etcd-peer-proxy: true
|
etcd-peer-proxy: true
|
||||||
etcd-client-endpoint: 127.0.0.1:1379
|
etcd-client-endpoint: 127.0.0.1:1379
|
||||||
etcd:
|
etcd:
|
||||||
name: s1
|
name: s1
|
||||||
data-dir: /tmp/etcd-agent-data-1/etcd.data
|
data-dir: /tmp/etcd-functional-1/etcd.data
|
||||||
wal-dir: /tmp/etcd-agent-data-1/etcd.data/member/wal
|
wal-dir: /tmp/etcd-functional-1/etcd.data/member/wal
|
||||||
heartbeat-interval: 100
|
heartbeat-interval: 100
|
||||||
election-timeout: 1000
|
election-timeout: 1000
|
||||||
listen-client-urls: ["https://127.0.0.1:1379"]
|
listen-client-urls: ["https://127.0.0.1:1379"]
|
||||||
@ -34,18 +34,32 @@ agent-configs:
|
|||||||
quota-backend-bytes: 10740000000 # 10 GiB
|
quota-backend-bytes: 10740000000 # 10 GiB
|
||||||
pre-vote: true
|
pre-vote: true
|
||||||
initial-corrupt-check: true
|
initial-corrupt-check: true
|
||||||
|
client-cert-data: ""
|
||||||
|
client-cert-path: ""
|
||||||
|
client-key-data: ""
|
||||||
|
client-key-path: ""
|
||||||
|
client-trusted-ca-data: ""
|
||||||
|
client-trusted-ca-path: ""
|
||||||
|
peer-cert-data: ""
|
||||||
|
peer-cert-path: ""
|
||||||
|
peer-key-data: ""
|
||||||
|
peer-key-path: ""
|
||||||
|
peer-trusted-ca-data: ""
|
||||||
|
peer-trusted-ca-path: ""
|
||||||
|
snapshot-path: /tmp/etcd-functional-1.snapshot.db
|
||||||
|
|
||||||
- etcd-exec-path: ./bin/etcd
|
- etcd-exec-path: ./bin/etcd
|
||||||
agent-addr: 127.0.0.1:29027
|
agent-addr: 127.0.0.1:29027
|
||||||
failpoint-http-addr: http://127.0.0.1:7382
|
failpoint-http-addr: http://127.0.0.1:7382
|
||||||
base-dir: /tmp/etcd-agent-data-2
|
base-dir: /tmp/etcd-functional-2
|
||||||
etcd-log-path: /tmp/etcd-agent-data-2/current-etcd.log
|
etcd-log-path: /tmp/etcd-functional-2/current-etcd.log
|
||||||
etcd-client-proxy: false
|
etcd-client-proxy: false
|
||||||
etcd-peer-proxy: true
|
etcd-peer-proxy: true
|
||||||
etcd-client-endpoint: 127.0.0.1:2379
|
etcd-client-endpoint: 127.0.0.1:2379
|
||||||
etcd:
|
etcd:
|
||||||
name: s2
|
name: s2
|
||||||
data-dir: /tmp/etcd-agent-data-2/etcd.data
|
data-dir: /tmp/etcd-functional-2/etcd.data
|
||||||
wal-dir: /tmp/etcd-agent-data-2/etcd.data/member/wal
|
wal-dir: /tmp/etcd-functional-2/etcd.data/member/wal
|
||||||
heartbeat-interval: 100
|
heartbeat-interval: 100
|
||||||
election-timeout: 1000
|
election-timeout: 1000
|
||||||
listen-client-urls: ["https://127.0.0.1:2379"]
|
listen-client-urls: ["https://127.0.0.1:2379"]
|
||||||
@ -69,18 +83,32 @@ agent-configs:
|
|||||||
quota-backend-bytes: 10740000000 # 10 GiB
|
quota-backend-bytes: 10740000000 # 10 GiB
|
||||||
pre-vote: true
|
pre-vote: true
|
||||||
initial-corrupt-check: true
|
initial-corrupt-check: true
|
||||||
|
client-cert-data: ""
|
||||||
|
client-cert-path: ""
|
||||||
|
client-key-data: ""
|
||||||
|
client-key-path: ""
|
||||||
|
client-trusted-ca-data: ""
|
||||||
|
client-trusted-ca-path: ""
|
||||||
|
peer-cert-data: ""
|
||||||
|
peer-cert-path: ""
|
||||||
|
peer-key-data: ""
|
||||||
|
peer-key-path: ""
|
||||||
|
peer-trusted-ca-data: ""
|
||||||
|
peer-trusted-ca-path: ""
|
||||||
|
snapshot-path: /tmp/etcd-functional-2.snapshot.db
|
||||||
|
|
||||||
- etcd-exec-path: ./bin/etcd
|
- etcd-exec-path: ./bin/etcd
|
||||||
agent-addr: 127.0.0.1:39027
|
agent-addr: 127.0.0.1:39027
|
||||||
failpoint-http-addr: http://127.0.0.1:7383
|
failpoint-http-addr: http://127.0.0.1:7383
|
||||||
base-dir: /tmp/etcd-agent-data-3
|
base-dir: /tmp/etcd-functional-3
|
||||||
etcd-log-path: /tmp/etcd-agent-data-3/current-etcd.log
|
etcd-log-path: /tmp/etcd-functional-3/current-etcd.log
|
||||||
etcd-client-proxy: false
|
etcd-client-proxy: false
|
||||||
etcd-peer-proxy: true
|
etcd-peer-proxy: true
|
||||||
etcd-client-endpoint: 127.0.0.1:3379
|
etcd-client-endpoint: 127.0.0.1:3379
|
||||||
etcd:
|
etcd:
|
||||||
name: s3
|
name: s3
|
||||||
data-dir: /tmp/etcd-agent-data-3/etcd.data
|
data-dir: /tmp/etcd-functional-3/etcd.data
|
||||||
wal-dir: /tmp/etcd-agent-data-3/etcd.data/member/wal
|
wal-dir: /tmp/etcd-functional-3/etcd.data/member/wal
|
||||||
heartbeat-interval: 100
|
heartbeat-interval: 100
|
||||||
election-timeout: 1000
|
election-timeout: 1000
|
||||||
listen-client-urls: ["https://127.0.0.1:3379"]
|
listen-client-urls: ["https://127.0.0.1:3379"]
|
||||||
@ -104,6 +132,19 @@ agent-configs:
|
|||||||
quota-backend-bytes: 10740000000 # 10 GiB
|
quota-backend-bytes: 10740000000 # 10 GiB
|
||||||
pre-vote: true
|
pre-vote: true
|
||||||
initial-corrupt-check: true
|
initial-corrupt-check: true
|
||||||
|
client-cert-data: ""
|
||||||
|
client-cert-path: ""
|
||||||
|
client-key-data: ""
|
||||||
|
client-key-path: ""
|
||||||
|
client-trusted-ca-data: ""
|
||||||
|
client-trusted-ca-path: ""
|
||||||
|
peer-cert-data: ""
|
||||||
|
peer-cert-path: ""
|
||||||
|
peer-key-data: ""
|
||||||
|
peer-key-path: ""
|
||||||
|
peer-trusted-ca-data: ""
|
||||||
|
peer-trusted-ca-path: ""
|
||||||
|
snapshot-path: /tmp/etcd-functional-3.snapshot.db
|
||||||
|
|
||||||
tester-config:
|
tester-config:
|
||||||
data-dir: /tmp/etcd-tester-data
|
data-dir: /tmp/etcd-tester-data
|
||||||
|
@ -31,15 +31,15 @@ func Test_read(t *testing.T) {
|
|||||||
EtcdExecPath: "./bin/etcd",
|
EtcdExecPath: "./bin/etcd",
|
||||||
AgentAddr: "127.0.0.1:19027",
|
AgentAddr: "127.0.0.1:19027",
|
||||||
FailpointHTTPAddr: "http://127.0.0.1:7381",
|
FailpointHTTPAddr: "http://127.0.0.1:7381",
|
||||||
BaseDir: "/tmp/etcd-agent-data-1",
|
BaseDir: "/tmp/etcd-functional-1",
|
||||||
EtcdLogPath: "/tmp/etcd-agent-data-1/current-etcd.log",
|
EtcdLogPath: "/tmp/etcd-functional-1/current-etcd.log",
|
||||||
EtcdClientProxy: false,
|
EtcdClientProxy: false,
|
||||||
EtcdPeerProxy: true,
|
EtcdPeerProxy: true,
|
||||||
EtcdClientEndpoint: "127.0.0.1:1379",
|
EtcdClientEndpoint: "127.0.0.1:1379",
|
||||||
Etcd: &rpcpb.Etcd{
|
Etcd: &rpcpb.Etcd{
|
||||||
Name: "s1",
|
Name: "s1",
|
||||||
DataDir: "/tmp/etcd-agent-data-1/etcd.data",
|
DataDir: "/tmp/etcd-functional-1/etcd.data",
|
||||||
WALDir: "/tmp/etcd-agent-data-1/etcd.data/member/wal",
|
WALDir: "/tmp/etcd-functional-1/etcd.data/member/wal",
|
||||||
HeartbeatIntervalMs: 100,
|
HeartbeatIntervalMs: 100,
|
||||||
ElectionTimeoutMs: 1000,
|
ElectionTimeoutMs: 1000,
|
||||||
ListenClientURLs: []string{"https://127.0.0.1:1379"},
|
ListenClientURLs: []string{"https://127.0.0.1:1379"},
|
||||||
@ -64,20 +64,33 @@ func Test_read(t *testing.T) {
|
|||||||
PreVote: true,
|
PreVote: true,
|
||||||
InitialCorruptCheck: true,
|
InitialCorruptCheck: true,
|
||||||
},
|
},
|
||||||
|
ClientCertData: "",
|
||||||
|
ClientCertPath: "",
|
||||||
|
ClientKeyData: "",
|
||||||
|
ClientKeyPath: "",
|
||||||
|
ClientTrustedCAData: "",
|
||||||
|
ClientTrustedCAPath: "",
|
||||||
|
PeerCertData: "",
|
||||||
|
PeerCertPath: "",
|
||||||
|
PeerKeyData: "",
|
||||||
|
PeerKeyPath: "",
|
||||||
|
PeerTrustedCAData: "",
|
||||||
|
PeerTrustedCAPath: "",
|
||||||
|
SnapshotPath: "/tmp/etcd-functional-1.snapshot.db",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
EtcdExecPath: "./bin/etcd",
|
EtcdExecPath: "./bin/etcd",
|
||||||
AgentAddr: "127.0.0.1:29027",
|
AgentAddr: "127.0.0.1:29027",
|
||||||
FailpointHTTPAddr: "http://127.0.0.1:7382",
|
FailpointHTTPAddr: "http://127.0.0.1:7382",
|
||||||
BaseDir: "/tmp/etcd-agent-data-2",
|
BaseDir: "/tmp/etcd-functional-2",
|
||||||
EtcdLogPath: "/tmp/etcd-agent-data-2/current-etcd.log",
|
EtcdLogPath: "/tmp/etcd-functional-2/current-etcd.log",
|
||||||
EtcdClientProxy: false,
|
EtcdClientProxy: false,
|
||||||
EtcdPeerProxy: true,
|
EtcdPeerProxy: true,
|
||||||
EtcdClientEndpoint: "127.0.0.1:2379",
|
EtcdClientEndpoint: "127.0.0.1:2379",
|
||||||
Etcd: &rpcpb.Etcd{
|
Etcd: &rpcpb.Etcd{
|
||||||
Name: "s2",
|
Name: "s2",
|
||||||
DataDir: "/tmp/etcd-agent-data-2/etcd.data",
|
DataDir: "/tmp/etcd-functional-2/etcd.data",
|
||||||
WALDir: "/tmp/etcd-agent-data-2/etcd.data/member/wal",
|
WALDir: "/tmp/etcd-functional-2/etcd.data/member/wal",
|
||||||
HeartbeatIntervalMs: 100,
|
HeartbeatIntervalMs: 100,
|
||||||
ElectionTimeoutMs: 1000,
|
ElectionTimeoutMs: 1000,
|
||||||
ListenClientURLs: []string{"https://127.0.0.1:2379"},
|
ListenClientURLs: []string{"https://127.0.0.1:2379"},
|
||||||
@ -102,20 +115,33 @@ func Test_read(t *testing.T) {
|
|||||||
PreVote: true,
|
PreVote: true,
|
||||||
InitialCorruptCheck: true,
|
InitialCorruptCheck: true,
|
||||||
},
|
},
|
||||||
|
ClientCertData: "",
|
||||||
|
ClientCertPath: "",
|
||||||
|
ClientKeyData: "",
|
||||||
|
ClientKeyPath: "",
|
||||||
|
ClientTrustedCAData: "",
|
||||||
|
ClientTrustedCAPath: "",
|
||||||
|
PeerCertData: "",
|
||||||
|
PeerCertPath: "",
|
||||||
|
PeerKeyData: "",
|
||||||
|
PeerKeyPath: "",
|
||||||
|
PeerTrustedCAData: "",
|
||||||
|
PeerTrustedCAPath: "",
|
||||||
|
SnapshotPath: "/tmp/etcd-functional-2.snapshot.db",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
EtcdExecPath: "./bin/etcd",
|
EtcdExecPath: "./bin/etcd",
|
||||||
AgentAddr: "127.0.0.1:39027",
|
AgentAddr: "127.0.0.1:39027",
|
||||||
FailpointHTTPAddr: "http://127.0.0.1:7383",
|
FailpointHTTPAddr: "http://127.0.0.1:7383",
|
||||||
BaseDir: "/tmp/etcd-agent-data-3",
|
BaseDir: "/tmp/etcd-functional-3",
|
||||||
EtcdLogPath: "/tmp/etcd-agent-data-3/current-etcd.log",
|
EtcdLogPath: "/tmp/etcd-functional-3/current-etcd.log",
|
||||||
EtcdClientProxy: false,
|
EtcdClientProxy: false,
|
||||||
EtcdPeerProxy: true,
|
EtcdPeerProxy: true,
|
||||||
EtcdClientEndpoint: "127.0.0.1:3379",
|
EtcdClientEndpoint: "127.0.0.1:3379",
|
||||||
Etcd: &rpcpb.Etcd{
|
Etcd: &rpcpb.Etcd{
|
||||||
Name: "s3",
|
Name: "s3",
|
||||||
DataDir: "/tmp/etcd-agent-data-3/etcd.data",
|
DataDir: "/tmp/etcd-functional-3/etcd.data",
|
||||||
WALDir: "/tmp/etcd-agent-data-3/etcd.data/member/wal",
|
WALDir: "/tmp/etcd-functional-3/etcd.data/member/wal",
|
||||||
HeartbeatIntervalMs: 100,
|
HeartbeatIntervalMs: 100,
|
||||||
ElectionTimeoutMs: 1000,
|
ElectionTimeoutMs: 1000,
|
||||||
ListenClientURLs: []string{"https://127.0.0.1:3379"},
|
ListenClientURLs: []string{"https://127.0.0.1:3379"},
|
||||||
@ -140,6 +166,19 @@ func Test_read(t *testing.T) {
|
|||||||
PreVote: true,
|
PreVote: true,
|
||||||
InitialCorruptCheck: true,
|
InitialCorruptCheck: true,
|
||||||
},
|
},
|
||||||
|
ClientCertData: "",
|
||||||
|
ClientCertPath: "",
|
||||||
|
ClientKeyData: "",
|
||||||
|
ClientKeyPath: "",
|
||||||
|
ClientTrustedCAData: "",
|
||||||
|
ClientTrustedCAPath: "",
|
||||||
|
PeerCertData: "",
|
||||||
|
PeerCertPath: "",
|
||||||
|
PeerKeyData: "",
|
||||||
|
PeerKeyPath: "",
|
||||||
|
PeerTrustedCAData: "",
|
||||||
|
PeerTrustedCAPath: "",
|
||||||
|
SnapshotPath: "/tmp/etcd-functional-3.snapshot.db",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Tester: &rpcpb.Tester{
|
Tester: &rpcpb.Tester{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user