22 Commits

Author SHA1 Message Date
Barbara Miller
4ad3cff415 updates for rethinkdb 2.4.9 2023-05-18 17:16:04 -07:00
Noah Levitt
f26704a206 logging.warning instead of warn to assuage py 3.7 2019-05-16 23:29:55 +00:00
Noah Levitt
5cbfe18f9e make service registry table name configurable 2017-10-10 11:05:32 -07:00
James Kafader
8f5232ac73 a few more revisions after consultation with noah. 2017-09-26 17:00:17 -07:00
James Kafader
872ef2d93b changed after reviewing merge request 2017-09-26 16:43:37 -07:00
James Kafader
a877fa0fd8 Adds cron garbage collector 2017-09-26 15:51:11 -07:00
Noah Levitt
03e641549e use new index "role" in service registry 2017-09-06 17:25:35 -07:00
Noah Levitt
b063fdc1fb fix the KeyError bug in unique_service() 2017-05-26 14:52:36 -07:00
Noah Levitt
d33695e40b tweak some docs 2017-05-17 12:28:48 -07:00
Noah Levitt
03e9d4eeef Merge branch 'master' into rename-heartbeat-interval-to-ttl
* master:
  bump version for pull request just merged and tweak run-tests.sh
  avoid database transaction to get current time
  make sure this variable is actually defined
  correct comment
  standardize the concept of 'now' to ensure that the same view of the service is returned from the read and update queries.
2017-05-17 12:15:44 -07:00
Noah Levitt
158923d88b avoid database transaction to get current time 2017-05-17 12:11:26 -07:00
James Kafader
a0d17151fe make sure this variable is actually defined 2017-05-16 18:16:54 -07:00
James Kafader
6dc3967bd6 rename "heartbeat_interval" -> "ttl", simplify mathematics. 2017-05-16 14:31:39 -07:00
James Kafader
55331083b3 correct comment 2017-05-16 11:33:15 -07:00
James Kafader
78c26186b0 standardize the concept of 'now' to ensure that the same view of the service is returned from the read and update queries. 2017-05-16 11:31:03 -07:00
Noah Levitt
9c2e7a59e1 remove stray code from abandoned heartbeat technique in unique_service() 2017-05-01 12:04:26 -07:00
Noah Levitt
b85566c405 rename ServiceRegistry.leader() to ServiceRegistry.unique_service(); implement heartbeat in that method; only return healthy service; add a detailed docstring 2017-04-28 16:29:00 -07:00
Noah Levitt
dcccc3fa23 lots of documentation on the service registry 2017-04-28 15:23:55 -07:00
Noah Levitt
a1c5a08790 raise exception if heartbeat status_info is missing required fields 2017-04-27 14:34:07 -07:00
James Kafader
a5cac606fa added a leader election feature and tests 2017-04-18 16:56:53 -07:00
Noah Levitt
c14bae6050 new convention, call Rethinker object rr (mnemonic RethinkeR, or *double*[think]), leave rethinkdb as r per the rethinkdb convention 2017-03-01 11:20:27 -08:00
Noah Levitt
e8db41763b rename the project "doublethink" (credit goes to @adam-miller) 2017-02-28 16:44:26 -08:00