Yicheng Qin
3127a3b659
tools/etcd-tester: wait longer for health
...
It dramatically reduce the probability that follower failed to catch up
the leader.
2015-04-21 17:55:24 -07:00
Xiang Li
b99c80874f
Merge pull request #2721 from philips/add-extended
...
etcdctl: add extended as output format
2015-04-21 12:16:00 -07:00
Brandon Philips
57270ec0b7
etcdctl: add extended as output format
...
extended wasn't documented in the help as one of the output formats, fix
this!
2015-04-21 10:22:58 -07:00
Xiang Li
f077092bc1
Merge pull request #2715 from xiang90/version
...
*: serve json version on both client and peer url
2015-04-20 16:52:14 -07:00
Xiang Li
5ad559b503
*: serve json version on both client and peer url
2015-04-20 16:23:51 -07:00
Xiang Li
9dd7c1c60b
Merge pull request #2708 from judwhite/patch-1
...
README.md: change setDir -> setdir
2015-04-20 13:56:35 -07:00
Xiang Li
4eae0e06e5
Merge pull request #2709 from justinsb/specify_bash_in_genproto
...
genproto assumes bash; specify bash
2015-04-18 15:31:00 -07:00
Justin Santa Barbara
117cb995a5
script: genproto assumes bash; specify bash
2015-04-18 15:13:35 -07:00
Jud White
d0f1bf9f8e
README.md: change setDir -> setdir
2015-04-18 05:33:32 -05:00
Xiang Li
90a7978474
Merge pull request #2666 from philips/check-error-in-store
...
store: always check the error
2015-04-17 20:14:32 -07:00
Xiang Li
61e94ae16c
Merge pull request #2625 from bakins/client-srv
...
Initial SRV discovery for clients
2015-04-17 08:07:32 -07:00
Brian Akins
c4899c201e
client: Discovery via SRV lookups
...
Based on code from discovery/srv.go. The returns the target as DNS
returns it. In the case of SSL, certs are tied to the hostname and not
the IP address generally.
Solves #2547
2015-04-17 10:57:01 -04:00
Brandon Philips
2a675c08c2
store: always check the error
...
Ensure that we propogate any errors out of the node.Remove operation
back to the user. There is no reason to assume here.
2015-04-16 17:22:57 -07:00
Xiang Li
54c4d5005d
Merge pull request #2673 from ecnahc515/create_in_order
...
client: Add CreateInOrder method to client.KeysAPI
2015-04-16 13:34:09 -07:00
Rob Szumski
ee54aa3f02
Merge pull request #2697 from coreos/robszumski-patch-1
...
docs: size up all headers by 2
2015-04-16 10:10:35 -07:00
Rob Szumski
df32fe63c8
docs: size up all headers by 2
2015-04-16 09:55:46 -07:00
Xiang Li
38a373ede9
Merge pull request #2692 from philips/add-migration-guide
...
Documentation: add migration notes to backward compatibility
2015-04-16 07:05:07 -07:00
Brandon Philips
a223fd532b
Documentation: add migration notes to backward compatibility
...
Add thorough notes on both the data directory migration and the snapshot
migration options.
2015-04-15 20:42:12 -07:00
Xiang Li
3e5d1cd873
Merge pull request #2678 from xiang90/fix_snapshot
...
snap: load should only return ErrNoSnapshot
2015-04-15 09:53:17 -07:00
Xiang Li
f697916793
snap: load should only return ErrNoSnapshot
...
If there is no available snapshot, load should return
ErrNoSnapshot. etcdserver might recover from that error
if it still have complete WAL files.
2015-04-15 09:41:07 -07:00
Xiang Li
0c3a92f855
Merge pull request #2663 from xiang90/wal_b
...
wal: report throughput in wal bench
2015-04-15 09:32:17 -07:00
Xiang Li
da098ad713
Merge pull request #2685 from xiang90/fix_server
...
etcdserver: prevExist=true + condition is compareAndSwap
2015-04-15 09:17:13 -07:00
Xiang Li
98f8dfbc9d
etcdserver: prevExist=true + condition is compareAndSwap
...
PrevExist indicates the key should exist. Condition compares with
an existing key. So PrevExist+condition = CompareAndSwap not Update.
2015-04-14 23:44:06 -07:00
Xiang Li
3aa7a31771
Merge pull request #2680 from xiang90/fix_backup
...
etcdctl: backup tool should use the new layout
2015-04-14 11:50:14 -07:00
Xiang Li
d3778b1286
etcdctl: backup tool should use the new layout
2015-04-14 11:49:54 -07:00
Chance Zibolski
d89a8628c6
client: Add CreateInOrder method to client.KeysAPI
...
Allows creating nodes within a given directory with atomically increasing
keys
2015-04-13 17:23:17 -07:00
Xiang Li
f480a8b051
Merge pull request #2665 from xiaost/fix-minor-bug-in-etcdserver-send
...
etcdserver: fix minor bug in EtcdServer.send
2015-04-13 07:27:12 -07:00
xiaost
eab2c2224a
etcdserver: fix minor bug in EtcdServer.send
...
it seems to nothing serious.
after deleted peers, the log may output:
"etcdserver: send message to unknown receiver %s"
2015-04-13 20:35:58 +08:00
Xiang Li
aed18395c9
wal: report throughput in wal bench
2015-04-12 21:35:08 -07:00
Xiang Li
25f1feceb5
Merge pull request #2645 from xiang90/fix_more
...
wal: never leave a corrupted wal file
2015-04-09 10:30:54 -07:00
Yicheng Qin
852213879b
Merge pull request #2633 from yichengq/deprecate
...
etcdmain: deprecate --ca-file and --peer-ca-file
2015-04-09 10:22:30 -07:00
Yicheng Qin
2f7b9a2232
etcdmain: deprecate --ca-file and --peer-ca-file
...
1. Print out DEPRECATE warning when running and configuration doc.
2. Use new flags for security example.
2015-04-09 10:14:32 -07:00
Xiang Li
89242d4659
wal: better log msg
2015-04-09 09:54:20 -07:00
Xiang Li
6a9e414961
Merge pull request #2603 from xiang90/dnssrv
...
*: stop using resolved tcp addr
2015-04-09 09:46:56 -07:00
Xiang Li
9b65ff6959
discovery: drop trailing . from srv target
2015-04-09 07:08:22 -07:00
Xiang Li
f5d4c86153
discovery: add a test case for srv
...
During srv discovery, it should try to match local member with
resolved addr and return unresolved hostnames for the cluster.
2015-04-09 07:07:27 -07:00
Xiang Li
a3892221ee
*: stop using resolved tcp addr
...
We start to resolve host into tcp addrs since we generate
tcp based initial-cluster during srv discovery. However it
creates problems around tls and cluster verification. The
srv discovery only needs to use resolved the tcp addr to
find the local node. It does not have to resolve everything
and use the resolved addrs.
This fixes #2488 and #2226
2015-04-09 07:01:48 -07:00
Yicheng Qin
486eb8f6a8
Merge pull request #2641 from yichengq/fix-build-release
...
scripts: not put etcd-migrate into release dir
2015-04-08 17:22:18 -07:00
Xiang Li
53792ccbdc
wal: never leave a corrupted wal file
...
If the process dies during wal.cut(), it might leave a corrupted wal
file. This commit solves the problem by creating a temp wal file first,
then atomically rename it to a wal file when we are sure it is vaild.
2015-04-08 15:57:20 -07:00
Yicheng Qin
2141308524
Merge pull request #2631 from yichengq/metrics-fd
...
etcdserver: metrics and monitor number of file descriptor
2015-04-08 11:28:58 -07:00
Yicheng Qin
7a7e1f7a7c
etcdserver: metrics and monitor number of file descriptor
...
It exposes the metrics of file descriptor limit and file descriptor used.
Moreover, it prints out warning when more than 80% of fd limit has been used.
```
2015/04/08 01:26:19 etcdserver: 80% of the file descriptor limit is open
[open = 969, limit = 1024]
```
2015-04-08 11:17:48 -07:00
Yicheng Qin
252a931666
Merge pull request #2642 from yichengq/protect-wal
...
wal: allow at most one WAL function called at one time
2015-04-08 09:42:00 -07:00
Yicheng Qin
44de670de7
wal: allow at most one WAL function called at one time
...
SaveSnap and Save are called in separate goroutines now. Allow at most
one WAL function being called at one time to protect internal fields and
guarantee execution order.
Or one possible bug is that the new cut file is started with snapshot
entry instead of crc entry.
2015-04-08 00:34:30 -07:00
Yicheng Qin
91e9a24289
scripts: not put etcd-migrate into release dir
...
etcd-migrate has been integrated with etcd, and there is no need to put
it into release dir any more.
2015-04-07 16:04:52 -07:00
Xiang Li
c66777f80f
Merge pull request #2640 from xiang90/import
...
etcdctl: refactor message in import command
2015-04-07 15:09:34 -07:00
Xiang Li
8c0b01d35b
etcdctl: refactor message in import command
2015-04-07 15:08:07 -07:00
Xiang Li
1b4bcedf99
Merge pull request #2637 from bakins/proxy-randomize-endpoints
...
proxy: shuffle endpoints
2015-04-07 14:12:50 -07:00
Brian Akins
1fa511b995
Clarify that it is the proxy doing the shuffle.
2015-04-07 17:05:17 -04:00
Xiang Li
74fd2b0536
Merge pull request #2638 from xiang90/import
...
etcdctl: import hidden keys
2015-04-07 12:53:18 -07:00
Xiang Li
2c647409b9
etcdctl: import hidden keys
2015-04-07 12:41:05 -07:00