Brandon Philips
9111617f32
chore(etcd): introduce sanitizeURL
...
checkURL was a little weird and allowed two different ways to specify
flags. Introduce sanitizeURL which will make sure the host passed in is
simply hostname:port and then appends a Scheme.
2013-08-10 19:22:04 -07:00
Xiang Li
6610fc39cc
defaultScheme based on tls
2013-08-10 17:49:30 -07:00
Xiang Li
84624f1ec0
fix join command
2013-08-10 17:00:25 -07:00
Xiang Li
bbf78b076a
update
2013-08-10 16:23:51 -07:00
Xiang Li
ba697f6ac9
fix web
2013-08-10 16:20:00 -07:00
Brandon Philips
60c71a98a4
fix(etcd): checkURL on webURL
...
make it so that dropping the schema isn't fatal.
2013-08-10 11:01:09 -07:00
Brandon Philips
0e5ee2742d
fix(web): don't share the DefaultMux
...
All of the web handlers were sharing one mux. Separate them out into
individual muxes.
2013-08-10 10:54:59 -07:00
Brandon Philips
8174669519
fix(etcd): be more explicit with name error message
2013-08-10 09:42:39 -07:00
Xiang Li
ce3c55ba3f
refactor
2013-08-09 23:03:49 -07:00
Xiang Li
d3471eec7f
separate_id
2013-08-09 21:06:16 -07:00
Brandon Philips
a19048841f
feat(trasnport): add an independent node name
...
Don't let the raft algorithm know anything about the transport. Give it
a nodename instead. This will allow us to support more complex
networking setups in the future.
2013-08-09 17:09:57 -07:00
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