Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
docs for InfluxDBClusterClient
Browse files Browse the repository at this point in the history
Signed-off-by: Can ZHANG <[email protected]>
  • Loading branch information
cannium committed Apr 10, 2015
1 parent 8ce4519 commit 8e45a8e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ Here's a basic example (for more see the examples directory)::

>>> print("Result: {0}".format(result))

If you want to connect to a cluster, you could initialize a ``InfluxDBClusterClient``::

$ python

>>> from influxdb import InfluxDBClusterClient

>>> cc = InfluxDBClusterClient(hosts = [('192.168.0.1', 8086),
('192.168.0.2', 8086),
('192.168.0.3', 8086)],
username='root',
password='root',
database='example')

``InfluxDBClusterClient`` has the same methods as ``InfluxDBClient``, it basically is a proxy to multiple InfluxDBClients.

Testing
=======
Expand Down

0 comments on commit 8e45a8e

Please sign in to comment.