Add docs for new consul driver
Change-Id: Ica007008d95cf2c9e5917b7258b793179ed63e1d
This commit is contained in:
parent
6daa485eeb
commit
170680e93c
@ -24,11 +24,11 @@ APIs
|
|||||||
Driver support
|
Driver support
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
:py:class:`~tooz.drivers.etcd.EtcdDriver` :py:class:`~tooz.drivers.file.FileDriver` :py:class:`~tooz.drivers.ipc.IPCDriver` :py:class:`~tooz.drivers.memcached.MemcachedDriver` :py:class:`~tooz.drivers.mysql.MySQLDriver` :py:class:`~tooz.drivers.pgsql.PostgresDriver` :py:class:`~tooz.drivers.redis.RedisDriver` :py:class:`~tooz.drivers.zake.ZakeDriver` :py:class:`~tooz.drivers.zookeeper.KazooDriver`
|
:py:class:`~tooz.drivers.consul.ConsulDriver` :py:class:`~tooz.drivers.etcd.EtcdDriver` :py:class:`~tooz.drivers.file.FileDriver` :py:class:`~tooz.drivers.ipc.IPCDriver` :py:class:`~tooz.drivers.memcached.MemcachedDriver` :py:class:`~tooz.drivers.mysql.MySQLDriver` :py:class:`~tooz.drivers.pgsql.PostgresDriver` :py:class:`~tooz.drivers.redis.RedisDriver` :py:class:`~tooz.drivers.zake.ZakeDriver` :py:class:`~tooz.drivers.zookeeper.KazooDriver`
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
No Yes No Yes No No Yes Yes Yes
|
No No Yes No Yes No No Yes Yes Yes
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
|
|
||||||
Leaders
|
Leaders
|
||||||
=======
|
=======
|
||||||
@ -44,11 +44,11 @@ APIs
|
|||||||
Driver support
|
Driver support
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
:py:class:`~tooz.drivers.etcd.EtcdDriver` :py:class:`~tooz.drivers.file.FileDriver` :py:class:`~tooz.drivers.ipc.IPCDriver` :py:class:`~tooz.drivers.memcached.MemcachedDriver` :py:class:`~tooz.drivers.mysql.MySQLDriver` :py:class:`~tooz.drivers.pgsql.PostgresDriver` :py:class:`~tooz.drivers.redis.RedisDriver` :py:class:`~tooz.drivers.zake.ZakeDriver` :py:class:`~tooz.drivers.zookeeper.KazooDriver`
|
:py:class:`~tooz.drivers.consul.ConsulDriver` :py:class:`~tooz.drivers.etcd.EtcdDriver` :py:class:`~tooz.drivers.file.FileDriver` :py:class:`~tooz.drivers.ipc.IPCDriver` :py:class:`~tooz.drivers.memcached.MemcachedDriver` :py:class:`~tooz.drivers.mysql.MySQLDriver` :py:class:`~tooz.drivers.pgsql.PostgresDriver` :py:class:`~tooz.drivers.redis.RedisDriver` :py:class:`~tooz.drivers.zake.ZakeDriver` :py:class:`~tooz.drivers.zookeeper.KazooDriver`
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
No No No Yes No No Yes Yes Yes
|
No No No No Yes No No Yes Yes Yes
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
|
|
||||||
Locking
|
Locking
|
||||||
=======
|
=======
|
||||||
@ -61,9 +61,8 @@ APIs
|
|||||||
Driver support
|
Driver support
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
:py:class:`~tooz.drivers.etcd.EtcdDriver` :py:class:`~tooz.drivers.file.FileDriver` :py:class:`~tooz.drivers.ipc.IPCDriver` :py:class:`~tooz.drivers.memcached.MemcachedDriver` :py:class:`~tooz.drivers.mysql.MySQLDriver` :py:class:`~tooz.drivers.pgsql.PostgresDriver` :py:class:`~tooz.drivers.redis.RedisDriver` :py:class:`~tooz.drivers.zake.ZakeDriver` :py:class:`~tooz.drivers.zookeeper.KazooDriver`
|
:py:class:`~tooz.drivers.consul.ConsulDriver` :py:class:`~tooz.drivers.etcd.EtcdDriver` :py:class:`~tooz.drivers.file.FileDriver` :py:class:`~tooz.drivers.ipc.IPCDriver` :py:class:`~tooz.drivers.memcached.MemcachedDriver` :py:class:`~tooz.drivers.mysql.MySQLDriver` :py:class:`~tooz.drivers.pgsql.PostgresDriver` :py:class:`~tooz.drivers.redis.RedisDriver` :py:class:`~tooz.drivers.zake.ZakeDriver` :py:class:`~tooz.drivers.zookeeper.KazooDriver`
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
Yes Yes Yes Yes Yes Yes Yes Yes Yes
|
Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
|
||||||
=========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
=============================================== =========================================== =========================================== ========================================= ===================================================== ============================================= ================================================ ============================================= =========================================== =================================================
|
||||||
|
|
||||||
|
@ -8,6 +8,12 @@ Interfaces
|
|||||||
.. autoclass:: tooz.coordination.CoordinationDriver
|
.. autoclass:: tooz.coordination.CoordinationDriver
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Consul
|
||||||
|
~~~~~~
|
||||||
|
|
||||||
|
.. autoclass:: tooz.drivers.consul.ConsulDriver
|
||||||
|
:members:
|
||||||
|
|
||||||
Etcd
|
Etcd
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
@ -198,12 +198,32 @@ The etcd driver is a driver providing only distributed locks (for now)
|
|||||||
and is based on the `etcd server`_ supported key/value storage and
|
and is based on the `etcd server`_ supported key/value storage and
|
||||||
associated primitives.
|
associated primitives.
|
||||||
|
|
||||||
|
Consul
|
||||||
|
------
|
||||||
|
|
||||||
|
**Driver:** :py:class:`tooz.drivers.consul.ConsulDriver`
|
||||||
|
|
||||||
|
**Characteristics:**
|
||||||
|
|
||||||
|
:py:attr:`tooz.drivers.consul.ConsulDriver.CHARACTERISTICS`
|
||||||
|
|
||||||
|
**Entrypoint name:** ``consul``
|
||||||
|
|
||||||
|
**Summary:**
|
||||||
|
|
||||||
|
The `consul`_ driver is a driver providing only distributed locks (for now)
|
||||||
|
and is based on the consul server key/value storage and/or
|
||||||
|
primitives. When a lock is acquired it will release either when explicitly
|
||||||
|
released or automatically when the consul session ends (for example if
|
||||||
|
the program using the lock crashes).
|
||||||
|
|
||||||
Characteristics
|
Characteristics
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
.. autoclass:: tooz.coordination.Characteristics
|
.. autoclass:: tooz.coordination.Characteristics
|
||||||
|
|
||||||
.. _etcd server: https://coreos.com/etcd/
|
.. _etcd server: https://coreos.com/etcd/
|
||||||
|
.. _consul: https://www.consul.io/
|
||||||
.. _advisory locks: http://www.postgresql.org/docs/8.2/interactive/\
|
.. _advisory locks: http://www.postgresql.org/docs/8.2/interactive/\
|
||||||
explicit-locking.html#ADVISORY-LOCKS
|
explicit-locking.html#ADVISORY-LOCKS
|
||||||
.. _get_lock: http://dev.mysql.com/doc/refman/5.5/en/\
|
.. _get_lock: http://dev.mysql.com/doc/refman/5.5/en/\
|
||||||
|
@ -33,6 +33,7 @@ def print_methods(methods):
|
|||||||
|
|
||||||
driver_tpl = ":py:class:`~tooz.drivers.%s`"
|
driver_tpl = ":py:class:`~tooz.drivers.%s`"
|
||||||
driver_class_names = [
|
driver_class_names = [
|
||||||
|
"consul.ConsulDriver",
|
||||||
"etcd.EtcdDriver",
|
"etcd.EtcdDriver",
|
||||||
"file.FileDriver",
|
"file.FileDriver",
|
||||||
"ipc.IPCDriver",
|
"ipc.IPCDriver",
|
||||||
@ -72,6 +73,7 @@ print_header("Driver support", delim="-")
|
|||||||
print("")
|
print("")
|
||||||
grouping_table = [
|
grouping_table = [
|
||||||
[
|
[
|
||||||
|
"No", # Consul
|
||||||
"No", # Etcd
|
"No", # Etcd
|
||||||
"Yes", # File
|
"Yes", # File
|
||||||
"No", # IPC
|
"No", # IPC
|
||||||
@ -103,6 +105,7 @@ print_header("Driver support", delim="-")
|
|||||||
print("")
|
print("")
|
||||||
leader_table = [
|
leader_table = [
|
||||||
[
|
[
|
||||||
|
"No", # Consul
|
||||||
"No", # Etcd
|
"No", # Etcd
|
||||||
"No", # File
|
"No", # File
|
||||||
"No", # IPC
|
"No", # IPC
|
||||||
@ -131,6 +134,7 @@ print_header("Driver support", delim="-")
|
|||||||
print("")
|
print("")
|
||||||
lock_table = [
|
lock_table = [
|
||||||
[
|
[
|
||||||
|
"Yes", # Consul
|
||||||
"Yes", # Etcd
|
"Yes", # Etcd
|
||||||
"Yes", # File
|
"Yes", # File
|
||||||
"Yes", # IPC
|
"Yes", # IPC
|
||||||
|
Loading…
Reference in New Issue
Block a user