Renan DelValle
c338c03355
Thrift API update and Pull Request template. ( #43 )
...
* Adding a Pull request template to serve as a reminder of what
to do before creating the pull request.
* Updating our thrift API to match changes made by Aurora.
* Update go bindings to match update thrift API.
2017-12-14 14:37:08 -08:00
Sivaram Mothiki
d4027bc95c
make insecureskipverify configurable ( #40 )
...
* make inseucreskipverify configurable
* add insecure and certspath to configs
* add certs test
* add config support for client key and cert
2017-12-12 14:04:11 -08:00
kkrishna
dd804af0a8
Merge pull request #42 from paypal/log
...
Adding missing Logger interface.
2017-11-30 12:33:00 -08:00
Renan DelValle
06cfa214ec
Adding missing Logger interface.
2017-11-30 12:11:54 -08:00
Renan DelValle
e614e04f27
Code cleanup, added ability to attach logger, added CreateService api
...
* Code cleanup: Deleted multiple functions which have become stale. Removed cluster example as we replaced the need to create the Cluster object.
* Cleaned up ZK connection code by using the backoff function. Added a test to the end to end to test that we're getting the host correctly from ZK. Changed clusters test to be an outside package.
* Added LeaderFromZKURL test to end to end tests.
* Added logger to realisConfig so that users can attach their own Loggers to the client. Logger is an interface that shadows most popular logging libraries. Only Print, Println, and Printf are needed to be a realis.Logger type. Example in the client uses the std library log.
* Moved most fmt.Print* calls to be redirected to user provided logger. Logger by default is a no-op logger.
* Adding CreateService to realis interface. Uses the StartJobUpdate API to create services instead of the createJobs API.
* Bumping up version number inside client in anticipation of new release.
2017-11-30 12:02:50 -08:00
Sivaram Mothiki
72b746e431
use exponential back off func from realis lib ( #39 )
...
* use exponential back off func from realis lib
* remove exponential backoffs from monitors
* dont compare for retry errors
2017-11-04 15:06:26 -07:00
Renan DelValle
23430cbf30
Merge pull request #38 from paypal/newAddress
...
Out with the old (address) in with the new (address)
2017-10-13 00:17:59 -07:00
Renan DelValle
a1350c6d55
out with the old (address) in with the new (address)
2017-10-12 17:11:01 -07:00
Renan DelValle
8a4a9bdb8c
Merge pull request #37 from rdelval/auroraAdmin
...
Added end maintenance API which allows DRAINED hosts to be transition…
2017-10-11 12:28:15 -07:00
Renan DelValle
65398fdfd6
Removed print statement as it makes no sense after the monitor change
2017-10-04 17:40:33 -07:00
Renan DelValle
bd008dbb39
Changing client to reflect monitor changes
2017-10-04 17:12:06 -07:00
Renan DelValle
1fd07b5007
Avoided going through the entire list of monitored hosts by keeping a set of hosts that had transistioned to a desired mode.
2017-10-04 15:56:59 -07:00
Renan DelValle
fa7833a749
Updating client to reflect changes made on the Monitor's side
2017-10-04 14:34:47 -07:00
Renan DelValle
922e8d6b5a
Changing HostMaintenance to return a map[string]bool where true indicates success, false indicates failure to transition to the desired state.
2017-10-02 17:24:01 -07:00
Renan DelValle
3111b358fc
Host Maintenance monitor now returns a list of hosts that did enter the desired mode(s) instead of a boolean. This means the monitor can see a partial success.
2017-09-29 18:21:30 -07:00
Renan DelValle
430764f025
Added tests for draining. run go test with a aurora vagrant image running to test.
2017-09-28 17:49:15 -07:00
Renan DelValle
7db2395df1
Changed from the old style of creating clients to the new clojure pattern.
2017-09-28 17:36:41 -07:00
Renan DelValle
bf354bcc0a
Fixed bug with NewDefaultClientUsingUrl where backoff was not initialized leading to nil pointer error.
2017-09-28 17:14:55 -07:00
Renan DelValle
8334dde12f
Sample client now blocks until all hosts entered desired state. Cleaned up host maintenance monitor.
2017-09-28 16:50:46 -07:00
Renan DelValle
dc6848f804
Host Maintenance monitor which allows to block until all hosts in a list have entered of the states in a provided set
2017-09-28 16:35:24 -07:00
Renan DelValle
c03e8bf79c
Added Maintenance status API
2017-09-28 16:32:17 -07:00
Renan DelValle
8fe3780949
Added end maintenance API which allows DRAINED hosts to be transitioned to ACTIVE. Fixed bug where payload error would never be returned if call failed due to a bad payload.
2017-09-27 14:02:43 -07:00
Renan DelValle
f59940f9a7
Merge pull request #36 from rdelval/auroraAdmin
...
New API to set hosts to DRAINING. Cleaned up some of the sample client code.
2017-09-26 12:33:50 -07:00
Renan DelValle
f59f0bbdc3
Setting retry for drain hosts to be a little more agressive for now. Added comments for go doc. DrainHosts now returns also returns a result type which will give API users the ability to operate directly on that object wihout using a response helper.
2017-09-25 15:45:40 -07:00
Renan DelValle
0d3126c468
New API to set hosts to DRAINING. Cleaned up some of the client code, and fixed a few error printing bugs.
2017-09-22 12:55:03 -07:00
kkrishna
d9f4086853
Merge pull request #35 from rdelval/jobAsPtr
...
AuroraJob is now passed as pointer, resources are now initialized with create job
2017-09-18 16:48:57 -07:00
Renan DelValle
f301affdd0
Initializing CPU, RAM, and DISK resources to have an address when a new job object is created so that were able to modify the values when constructing job updates.
2017-09-18 16:10:10 -07:00
Renan DelValle
13cc103faa
Changing AuroraJob to *AuroraJob in order to not create new objects so that UpdateJob is able to change parameters.
2017-09-14 16:38:26 -07:00
Renan DelValle
ef49df747f
Merge pull request #33 from smothiki/jobupdate
...
make monitor job update return false, err on rolled back and update failures
2017-08-22 17:14:07 -07:00
Mothiki
4bc0a694ae
use switch instead of if else conditions
2017-08-22 17:03:35 -07:00
Mothiki
dcab5e698f
monitor job update returns on Rolle back and update fail
2017-08-22 16:55:20 -07:00
Mothiki
7e578f80bd
check for staus failed and return error
2017-08-21 19:45:36 -07:00
Renan DelValle
211319238e
Merge pull request #32 from rdelval/moreResponses
...
Adding Job Update Summaries response extractor so that we can write l…
2017-08-18 16:45:03 -07:00
Renan DelValle
0524238605
Adding Job Update Summaries response extractor so that we can write less error prone code.
2017-08-17 11:44:37 -07:00
kkrishna
40fcbb3d08
Merge pull request #31 from rdelval/LeaderZKReturnRebase
...
Bug fix : #30 NewRealisClient method returning <nil> error when zookee…
2017-08-02 17:36:09 -07:00
Renan DelValle
719a121ed5
Bug fix : #30 NewRealisClient method returning <nil> error when zookeeper leader not found
2017-08-02 16:43:18 -07:00
kkrishna
14483e13a5
Merge pull request #29 from rdelval/GetTasksWithoutConfigs
...
Adding GetTasksWithoutConfigs API call
2017-07-24 15:56:36 -07:00
Renan DelValle
99ea6aa094
Adding API call to get tasks without a fully hydrated object which results in less overhead
2017-07-24 15:45:24 -07:00
kkrishna
68e64682d7
Merge pull request #28 from rdelval/WatchSecsFix
...
Bug fix: Modifying wrong field insite od the job update settings.
2017-07-11 22:07:29 -07:00
Renan DelValle
8c29330e06
Bug fix: Modifying wrong field insite od the job update settings.
2017-07-11 12:37:34 -07:00
kkrishna
dd334d3a08
Merge pull request #27 from smothiki/nilcheck
...
check if the resposne schedule result is nil
2017-06-05 15:54:14 -07:00
Mothiki
900f054633
check if the resposne schedule result is nil
2017-06-02 15:41:08 -07:00
kkrishna
e12370ffbb
Merge pull request #21 from sunilmvn/master
...
Updating the client to not use instanceId 0 by default
2017-04-18 19:06:52 -07:00
Mukkavilli, Sunil
68d5b9c8fc
Mustn't print the whole config object in logs, just printing the url
2017-04-18 16:35:27 -07:00
Mukkavilli, Sunil
89337f9c7f
Merge branch 'master' of https://github.com/rdelval/gorealis
2017-04-18 16:10:58 -07:00
kkrishna
d08c0c637e
Merge pull request #26 from kkrishna/master
...
Add resiliency for LeaderFromZK and minor changes..
2017-04-12 22:29:18 -07:00
Kumar Krishna
0c6fc794ed
Merge branch 'master' of https://github.com/rdelval/gorealis
2017-04-06 23:16:11 -07:00
Kumar Krishna
e57dc98d65
add resiliency for LeaderFromZK and other fixes .
2017-04-06 23:15:44 -07:00
Renan DelValle
ff8f10a004
Merge pull request #25 from kkrishna/master
...
realisconfig refactor
2017-03-31 16:05:41 -04:00
Kumar Krishna
48ca520eaa
realisconfig refactor
2017-03-31 10:48:36 -07:00