pyorient
pyorient copied to clipboard
Load Balancing
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)
I'v got the same problem. Anyone help? I want to connect all server addresses like JAVA API.