Skip to content

Commit 91eb6d4

Browse files
committed
docs for InfluxDBClusterClient
Signed-off-by: Can ZHANG <zhangcan@letv.com>
1 parent e213ecd commit 91eb6d4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,20 @@ Here's a basic example (for more see the examples directory)::
126126

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

129+
If you want to connect to a cluster, you could initialize a ``InfluxDBClusterClient``::
130+
131+
$ python
132+
133+
>>> from influxdb import InfluxDBClusterClient
134+
135+
>>> cc = InfluxDBClusterClient(hosts = [('192.168.0.1', 8086),
136+
('192.168.0.2', 8086),
137+
('192.168.0.3', 8086)],
138+
username='root',
139+
password='root',
140+
database='example')
141+
142+
``InfluxDBClusterClient`` has the same methods as ``InfluxDBClient``, it basically is a proxy to multiple InfluxDBClients.
129143

130144
Testing
131145
=======

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy