Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using multiple servers/endpoints #146

Open
amotl opened this issue Jul 3, 2024 · 3 comments
Open

Using multiple servers/endpoints #146

amotl opened this issue Jul 3, 2024 · 3 comments

Comments

@amotl
Copy link
Member

amotl commented Jul 3, 2024

Hi there,

@SchabiDesigns reported a possible flaw over at Python crate using multiple cursors parallel. Thanks.

connection.connection.dbapi_connection.client.active_servers apparently only includes a single element. Specifically, it is the first server configured.

With kind regards,
Andreas.

@amotl
Copy link
Member Author

amotl commented Jul 3, 2024

Thinking about it, I am not sure if and how the SQLAlchemy driver interface can process multiple hosts, and if the CrateDB dialect is properly prepared to handle that right, if at all.

@seut
Copy link
Member

seut commented Jul 3, 2024

I'm not sure if it is really worth to support multiple servers. Even if crate-python supports this, it's more a poor-man round-robin solution and in production I'd really recommend the use of a real load-balancer. So maybe let's remove the support for multiple servers instead?

@amotl
Copy link
Member Author

amotl commented Jul 3, 2024

Thanks. @SchabiDesigns is also asking about the same thing:

→ I think I will go for a load balancer and use that as entry point for the cluster. Do you have a recommendation?

/cc @WalBeh, @hlcianfagna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants