Re: change servers listing without restarting?

2017-01-04 Thread Jeremy Evans
On Wednesday, January 4, 2017 at 3:38:24 PM UTC-8, Jay Danielian wrote:
>
> I am new to sequel, and its pretty amazing. I have a noob question, is it 
> possible to change the :servers listing without restarting? My use case is 
> I want to use the application level sharding support that sequel provides. 
> When adding new capacity (databases/shards) I would like them to be 
> available to my running application without needing to restart my server to 
> begin using the new database hosts. Ideally I can tap into a method that 
> reloads the existing connection information (with new :servers list) and 
> the current connection pool gets invalidated and reloaded to use the new 
> servers. I hope this makes sense.
>
> Thanks!
>
>
Database#add_servers and #remove_servers exists for this purpose.

Thanks, 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.


change servers listing without restarting?

2017-01-04 Thread Jay Danielian
I am new to sequel, and its pretty amazing. I have a noob question, is it 
possible to change the :servers listing without restarting? My use case is 
I want to use the application level sharding support that sequel provides. 
When adding new capacity (databases/shards) I would like them to be 
available to my running application without needing to restart my server to 
begin using the new database hosts. Ideally I can tap into a method that 
reloads the existing connection information (with new :servers list) and 
the current connection pool gets invalidated and reloaded to use the new 
servers. I hope this makes sense.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.