mogui / pyorient

Orientdb driver for python that uses the binary protocol.
Apache License 2.0
166 stars 127 forks source link

Load Balancing #276

Open cegprakash opened 6 years ago

cegprakash commented 6 years ago

How can I implement a load balancer using pyorient? In the documentation here I'm able to find the Java documentation. But I couldn't find a pyorient equivalent.

I tried semicolon separated ips. But it didn't work

server = "localhost;xx.xxx.x.xx"
db_name = "my_DB"
db_admin =  env("DB_ADMIN", default="root")
db_admin_password = env("DB_PASSWORD", default="root")
port = 2424

client = pyorient.OrientDB(server, port)
client.connect(db_admin, db_admin_password)
shinnayoung commented 4 years ago

I'v got the same problem. Anyone help? I want to connect all server addresses like JAVA API.