Gyuho Lee
eae30a6c9b
etcdserver: fix "unconvert" warnings
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-30 15:32:16 -07:00
Gyuho Lee
30dd8a7dde
etcdserver: support structured logging for auth
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-27 14:19:51 -07:00
Gyuho Lee
0e565c8960
etcdserver: use structured logging in "advertiseMatchesCluster"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-27 11:40:30 -07:00
Gyuho Lee
f7f6fdeb52
etcdserver: support structured logger for discovery, compactor
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-26 14:36:22 -07:00
Gyuho Lee
dca3f5e3ad
Merge pull request #9626 from yudai/fix_set_inexist_dir
...
etcdserver: Fix v2v3api set to create parent directly if not exists
2018-04-26 11:50:27 -07:00
Iwasaki Yudai
3c25465855
etcdserver: Fix v2v3api set to create parent directly if not exists
...
When a new file is created under an non existent directly,
the v2 API automatically create the parent directly.
This commit aligns the behaviour of v2v3 emulation to comply with the v2
API.
2018-04-25 17:36:59 -07:00
Gyuho Lee
3ea7a5d0bd
etcdserver: add "LoggerCore" field for Raft logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-25 10:16:54 -07:00
Gyuho Lee
4f45f5d9dd
Merge pull request #9591 from gyuho/election
...
*: add --initial-election-tick-advance to configure election fast-forward on bootstrap
2018-04-23 10:17:49 -07:00
Gyuho Lee
83f7f174da
etcdserver: print server configuration duration fields in string
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-20 13:11:11 -07:00
Gyuho Lee
5f8abdc227
etcdserver: log auto compaction on server start
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-20 11:58:36 -07:00
Gyuho Lee
f205b22434
etcdserver: fix snapshot panic message
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-20 11:20:17 -07:00
Gyuho Lee
21d2e2ab6e
etcdserver: add more tick fast-forward logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-19 17:45:23 -07:00
Gyuho Lee
4bec0d7d67
etcdserver: add "InitialElectionTickAdvance"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-19 17:45:23 -07:00
Gyuho Lee
8296ce0930
rafthttp: add/fix debugging lines
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-19 13:18:57 -07:00
Maciej Borsz
46bc966aa7
etcdserver: add is_leader prometheus metric that is 1 on the leader.
...
Before this change, we had now way to find a leader using /metrics
endpoint. This commit adds a metric to do that.
2018-04-19 11:47:40 +02:00
Gyuho Lee
d0847f4f25
*: clean up/fix server structured logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-18 12:54:43 -07:00
Gyuho Lee
a47c18ff5b
embed: clean up initial server start logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-17 14:24:08 -07:00
Gyuho Lee
bdbed26f64
etcdserver: support structured logging
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 17:36:00 -07:00
Gyuho Lee
041b9069a2
*: configure server logger
...
- Add/Document "logger" to support structured logging.
- This makes functional tests run easier, since zap logger
provides built-in log redirect to files.
- "etcd --logger-option=zap" to enable structured logging.
- Current "capnslog" will still be used as "default".
- We may switch the default or deprecate "capnslog" in v3.5.
- Either way, will clearly be documented.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-16 17:36:00 -07:00
Gyuho Lee
03cf9c45f8
etcdserver: fix typo in "adjustTicks"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-13 14:53:51 -07:00
disksing
10bf0283be
etcdserver/stats: make all fields guarded by mutex.
2018-04-12 10:43:11 +08:00
disksing
ba59bb2c2b
etcdserver/stats: fix stats data race.
2018-04-11 21:37:09 +08:00
Gyuho Lee
efe981e618
Revert "etcdserver: handle raft Propose error in v2 applier"
...
This reverts commit b38e138baf
.
2018-04-10 18:38:01 -07:00
Gyuho Lee
b38e138baf
etcdserver: handle raft Propose error in v2 applier
...
Handle "raft.ErrProposalDropped" as in v3 applier.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-10 16:01:14 -07:00
Gyuho Lee
744c73e019
etcdserver: fix "lease_expired_total" metrics
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-10 13:57:17 -07:00
nolouch
3c52342b37
etcdserver: handle proposal error when processing internal raft request
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 14:44:57 -07:00
Gyuho Lee
11818b5f40
etcdserverpb: document "Hash" and "HashKV" more clearly
...
Explain where the computation happens (e.g. "Hash" for all buckets
and "HashKV" for "key" bucket).
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-03 11:50:20 -07:00
Gyuho Lee
c841de1f62
etcdserver: add "CORS" field to "ServerConfig"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-27 06:25:44 -07:00
Gyuho Lee
29db853317
etcdserver: replace "hostWhitelist" with "AccessController"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-27 06:25:44 -07:00
Gyuho Lee
a994fdedb3
Merge pull request #9450 from hexfusion/gw_naming
...
etcdserver: improve Lease http path naming for gRPC gateway
2018-03-26 00:06:50 -07:00
Gyuho Lee
9af05a45d4
etcdserver: move "unsafe" flags to bottom
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-23 19:44:24 -07:00
Sam Batschelet
cd92d4a987
etcdserver: improve Lease http path naming for gRPC gateway with additional_bindings.
2018-03-22 07:38:03 -04:00
Hitoshi Mitake
b0ed5c1dd8
Merge pull request #8680 from mitake/auth-cleanup
...
*: don't use a string literal directly in grpc metadata
2018-03-20 18:19:23 +09:00
Gyuho Lee
4cb0d167d6
v3rpc: clean up "maintenanceServer.Status" call
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-17 02:41:54 -07:00
Gyuho Lee
14558027bc
*: fix "raftIndex" comment as "committed index"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-15 19:40:12 -04:00
Gyuho Lee
509cf414f7
etcdserver: remove duplicate "setAppliedIndex" calls
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-15 19:35:44 -04:00
Gyuho Lee
4f754c1850
etcdserver: clean up with "RaftStatusGetter"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-15 19:30:08 -04:00
Hitoshi Mitake
b1dd19a7aa
*: don't use string literals directly in grpc metadata
...
Current etcd code uses the string literals ("token", "authorization")
as field names of grpc and swappger metadata for passing token. It is
difficult to maintain so this commit introduces new constants for the
purpose.
2018-03-15 14:17:34 +09:00
Hitoshi Mitake
752963beea
*: unify type of key and rangeEnd in AuthRoleRevokePermissionRequest
...
Fix https://github.com/coreos/etcd/issues/9424
2018-03-14 14:38:20 +09:00
Gyuho Lee
9680b8a157
etcdserver: adjust election ticks on restart
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-10 19:09:38 -08:00
Gyuho Lee
edec229e10
etcdserver: make "advanceTicks" method
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-10 18:50:50 -08:00
Gyuho Lee
29d9543850
rafthttp: add "ActivePeers" to "Transport"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-10 18:50:47 -08:00
Sam Batschelet
7e14e11548
Merge pull request #9408 from qinix/fix-proto-code-style
...
etcdserverpb: fix protobuf code style
2018-03-09 08:34:15 -05:00
Eric Zhang
67c66884e3
etcdserverpb: fix protobuf code style
2018-03-09 14:20:52 +08:00
Iwasaki Yudai
db21941d1d
*: enforce max lease TTL with 9,000,000,000 seconds
...
math.MaxInt64 / time.Second is 9,223,372,036. 9,000,000,000 is easier to
remember/document.
2018-03-08 10:17:12 -08:00
Gyuho Lee
78918848bd
etcdserver: support Raft Pre-Vote
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-06 09:55:55 -08:00
revol.cai
3534df14b4
Documentation: trevisions -> revisions
2018-03-05 20:14:37 +08:00
Gyuho Lee
85533a6305
api/v3election: error on missing "leader" field
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-01 16:16:45 -08:00
Gyuho Lee
3648649277
etcdserver: add "HostWhitelist" to "ServerConfig"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-28 18:25:28 -08:00
Gyuho Lee
811566f2f2
*: fix "v2store" imports
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-26 17:11:40 -08:00