Commit Graph

144 Commits (12636ce89cd275ee865b7dfb0cf69639eb9b535b)

Author SHA1 Message Date
Xiang Li 06fab60dd6 simplify createTrans 2013-08-09 13:57:51 -07:00
Fabrizio (Misto) Milo ab10f95911 set messager as send only 2013-08-08 16:46:29 -07:00
Brandon Philips 5000e1de4a chore(etcd): pretty print the conf json
someone might edit this so pretty print it.
2013-08-08 13:59:45 -07:00
Brandon Philips 04318ff1be fix(etcd): rename ignore to force
It was suprising that the ignore file deleted node configuration. Change
the name to force!
2013-08-08 13:27:00 -07:00
Brandon Philips 27000cf5df chore(etcd): un-nest error handling logic 2013-08-08 13:19:33 -07:00
Brandon Philips 99d69cf842 feat(etcd): print out log line of where the configuration is
It is a bit confusing that your flags are ignored if there is an
existing info file. Inform the user.
2013-08-08 13:11:29 -07:00
Brandon Philips 5e8f9a57a5 fix(etcd): use . as the storage
/tmp is convienent but a little unexpected. Just use the cwd.
2013-08-08 12:58:11 -07:00
Brandon Philips 6a9a0a6fbe fix(etcd): use Info structs for "start" functions
instead of passing in half of the info pass everything in as info
structs
2013-08-08 12:49:35 -07:00
Brandon Philips 8e5a24d367 chore(etcd): introduce argInfo variable
reduce the global sprawl and put all of the basic info in an instance of
Info Struct
2013-08-08 12:17:25 -07:00
Brandon Philips f946ff0aab fix(etcd): log same port argument 2013-08-08 12:07:58 -07:00
Xiang Li e5aa6256f0 Merge https://github.com/coreos/etcd 2013-08-06 19:57:03 -07:00
Fabrizio (Misto) Milo a15b4bb687 gofmt 2013-08-06 17:46:21 -07:00
Fabrizio (Misto) Milo 742589aa72 nip 2013-08-06 17:34:39 -07:00
Fabrizio (Misto) Milo 1b69ebcb6c nip 2013-08-06 17:26:52 -07:00
Fabrizio (Misto) Milo efc14b719d nip 2013-08-06 17:24:51 -07:00
Fabrizio (Misto) Milo 4247e1ce74 prevent white spaces as being accepted as valid host 2013-08-06 17:20:40 -07:00
Fabrizio (Misto) Milo 50277df74c format 2013-08-06 17:19:49 -07:00
Fabrizio (Misto) Milo 11a7cd0bc2 nip 2013-08-06 17:11:10 -07:00
Fabrizio (Misto) Milo 63f28bacdd nip doc 2013-08-06 17:08:52 -07:00
Xiang Li d0e9449ba2 use url package to parse url; fix commented codes 2013-08-06 09:08:22 -07:00
Xiang Li d239e5e0dd fix join redirection 2013-08-05 17:29:01 -07:00
Xiang Li 793d5187a5 fix wrong join redirection 2013-08-05 17:02:27 -07:00
Xiang Li 10b5bc9871 fix wrong snapshot path 2013-08-04 22:02:40 -07:00
Xiang Li 0ebd133a0d support version and basic stats 2013-08-02 12:31:35 -07:00
Cong Ding 13af54fdd0 revise log handling
All the log-related operations are calling functions in util.go. This makes
the consistancy of the logs.
2013-08-01 23:28:03 +02:00
Cong Ding 9375039742 update fatal to the same stile as in line 410 2013-08-01 22:45:31 +02:00
Xiang Li aa3f0b3a2a change 404 not found to json error 2013-07-31 20:35:14 -07:00
Xiang Li 9ebc5b1a0b support go prof via flag cpuprofile 2013-07-31 19:43:44 -07:00
Xiang Li 08af8cd9b0 Merge https://github.com/coreos/etcd 2013-07-31 16:44:29 -07:00
Julius Volz 38b9758a5b Fix typo in variable name ("ELECTIONTIMTOUT"). 2013-08-01 01:17:25 +02:00
Xiang Li 79966b6550 Accept maxsize parameter. Deny further join request if reache max size 2013-07-31 11:05:12 -07:00
Xiang Li 0e6ebfa1f6 add veryverbose to ouput raft debug info 2013-07-28 20:19:39 -07:00
Xiang Li d1158f5a11 Merge branch 'newInit' 2013-07-26 16:53:44 -07:00
Xiang Li a6119d9499 fix grammar issue 2013-07-26 13:28:31 -07:00
Xiang Li 9ae4dec45e change init func due to the change in raft 2013-07-26 12:15:42 -07:00
Xiang Li 926edc327a refactor retryTime 2013-07-25 09:49:47 -07:00
Xiang Li f072217b35 add retryTime 2013-07-25 09:23:04 -07:00
Xiang Li 6c6f94fedd change func para due to the api change in go-raft 2013-07-24 17:25:23 -07:00
Xiang Li 0c2ffa84af do not try the empty machine name 2013-07-24 10:40:17 -07:00
Xiang Li d4e097df66 remove conf file when using ignore flag(due to a change in raft) 2013-07-23 15:54:12 -07:00
Xiang Li d2382c232e not hardcode debug scheme 2013-07-20 16:29:27 -07:00
Xiang Li 732f80ceda close experimental snapshot before merge to the master 2013-07-19 08:55:40 -07:00
Xiang Li 58501151da change snapshot api due to the change in go-raft 2013-07-16 18:03:21 -07:00
Xiang Li 1357beed79 Merge pull request #22 from ccding/devc
clean code
2013-07-16 10:37:43 -07:00
Cong Ding bac9bf59cf clean code 2013-07-16 19:32:00 +02:00
Cong Ding dcfd6f1e07 use function fatal(...) 2013-07-16 19:02:59 +02:00
Cong Ding fd1d908e79 fix typos 2013-07-16 01:04:41 +02:00
Xiang Li 8309c235d9 combine set and testandset command 2013-07-14 16:19:30 -07:00
Xiang Li 268ba2592a record machine info locally via join command 2013-07-14 11:45:35 -07:00
Xiang Li f470702b88 fix a bug when compare cluster len 2013-07-13 21:02:25 -07:00
Xiang Li 76ef446baf add machinesHttpHandler 2013-07-13 19:13:07 -07:00
Xiang Li 6821747763 remove commented codes 2013-07-12 16:38:25 -07:00
Xiang Li bff9321aa2 merge get and list operation 2013-07-12 16:04:00 -07:00
Xiang Li 3e43647303 read machines conf from file 2013-07-12 14:18:02 -07:00
Xiang Li 4b9b5d8069 merge get and list 2013-07-12 10:10:56 -07:00
Xiang Li 00d2d6eb4e gofmt 2013-07-12 08:56:10 -07:00
Xiang Li 33872501cf merge errHandling branch 2013-07-12 08:54:03 -07:00
Xiang Li 89bacedf3e change https bool to scheme string 2013-07-12 08:44:40 -07:00
Xiang Li a131632d3d error handling 2013-07-12 08:41:28 -07:00
Xiang Li e6354cdccf Fix a typo origin->original 2013-07-12 08:35:09 -07:00
Xiang Li c135c1e299 add comment for HTTPTIMEOUT constant 2013-07-11 14:56:16 -07:00
Xiang Li ffa4d1a3c0 add comment for HTTPTIMEOUT constant 2013-07-11 14:51:18 -07:00
Xiang Li 880cd71df5 add http timeout 2013-07-11 09:43:14 -07:00
Xiang Li c2a80df3f9 fix redeclear err 2013-07-10 20:19:34 -07:00
Xiang Li a26cb976c5 clean up prints and fix len problem 2013-07-10 20:14:32 -07:00
Xiang Li 45af72c941 redirect join to server port 2013-07-10 20:00:05 -07:00
Xiang Li 8af746ef6d accept machine list to join cluster 2013-07-10 19:02:58 -07:00
Xiang Li 2eda27e9f4 return error when cannot join the cluster 2013-07-10 16:25:37 -07:00
Xiang Li ce0dc5433f em... should not use := 2013-07-09 20:52:41 -07:00
Xiang Li f5796244b4 clean up etcd.go 2013-07-09 20:37:00 -07:00
Xiang Li 5271da3d19 gofmt 2013-07-09 17:31:24 -07:00
Xiang Li a3173bfd31 sepearte raft handlers and client handlers to two files and clean up related codes 2013-07-09 17:29:47 -07:00
Xiang Li fad972304c gofmt 2013-07-09 14:58:59 -07:00
Xiang Li 9efba81c09 merge 2013-07-09 14:57:36 -07:00
Xiang Li 5749b9db50 clean up transporter.go 2013-07-09 14:55:45 -07:00
Alex Polvi e0ae3e245a remove unneeded usage 2013-07-09 14:18:09 -07:00
Alex Polvi c52b76ac7b some defaults 2013-07-09 14:07:45 -07:00
Xiang Li 1e9307e88a clean up tree.go and watcher.go 2013-07-09 13:14:12 -07:00
Xiang Li 67a06ecca5 register new commands 2013-07-08 13:16:55 -07:00
Xiang Li dc3844a1f8 add testAndSet Command 2013-07-08 11:00:10 -07:00
Xiang Li e2f0420862 change imports to coreos/etcd coreos/go-raft; change API to work with new go-raft 2013-07-08 09:41:04 -07:00
Xiang Li 0f22918e2b make sure leader join self as a peer 2013-07-06 22:32:08 -07:00
Xiang Li 93c96b3813 add list feature 2013-07-05 16:22:45 -07:00
Xiang Li 6edce10980 close resp body, close snapshot 2013-07-03 11:22:52 -07:00
Xiang Li ab285a90bb using go http lib to parse post body 2013-07-01 11:16:30 -07:00
Xiang Li f6b3d8a2af during the leader election, return error to client 2013-06-30 21:17:51 -07:00
Xiang Li e211554b91 watch accept sinceIndex 2013-06-30 16:30:41 -07:00
Xiang Li a2b44bf9b7 use map to store the results. 2013-06-30 10:09:05 -07:00
Xiang Li c2f436a58b fix redirect after seprate client and server pot 2013-06-28 15:37:29 -07:00
Xiang Li 430f5d50e3 add command line varible -i to ignore the existing configuration 2013-06-28 15:04:05 -07:00
Xiang Li f67115b935 Allow different key,cert,CA for client and server communication 2013-06-28 14:46:05 -07:00
Xiang Li e3d556c319 seprate client and server port 2013-06-28 14:17:16 -07:00
Xiang Li 337b1f73eb add -d option to give the directory to store the log and snapshot 2013-06-28 11:47:47 -07:00
Xiang Li f16f7275b4 rname raftd.go to etcd.go 2013-06-28 11:33:10 -07:00