Kill-bill high-available

253 views
Skip to first unread message

Michiel Karnebeek

unread,
Mar 11, 2014, 4:55:20 AM3/11/14
to killbill...@googlegroups.com
Hello Kill-bill,

I have an implementation where the kill-bill API server is running on a dedicated virtual machine. Kill-bill is configured to use an existing database cluster to store its data. If the kill-bill server fails at some point, i can create a new server with the same configuration and it will not lose any data. This already works in my setup. My next step is to make it scale, like in the drawing below.

The MySQL database cluster and the HA proxy are already running and working fine. The question i have is: Does kill-bill support being run multiple times, while all instances access the same database? Do i need to set any specific settings in jetty's start.ini to make things work properly?

Thank you for the response!


Pierre-Alexandre Meyer

unread,
Mar 11, 2014, 10:48:05 AM3/11/14
to Michiel Karnebeek, killbill...@googlegroups.com
On Tue, Mar 11, 2014 at 4:55 AM, Michiel Karnebeek <mic...@karnebeek.com> wrote:
The MySQL database cluster and the HA proxy are already running and working fine. The question i have is: Does kill-bill support being run multiple times, while all instances access the same database?

Yes! Kill Bill is designed to scale horizontally that way. For specific (critical) operations, we need an account level lock (to avoid multiple instances trying to generate the same invoice for example), which we delegate to MySQL (via GET_LOCK()). The deployment configuration in your diagram should just work.
 
Do i need to set any specific settings in jetty's start.ini to make things work properly?

Jetty doesn't need to be aware of the multiple nodes configuration. FYI, here are the typical JVM options we recommend in production (this should let you run Kill Bill with 6 or 7 plugins):

-server
-Xmx2048m
-Xms512m
-XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled

I'm not sure if anyone is running Kill Bill behind HAProxy yet, so I'm curious about your feedback. If you have any tips, configuration options, etc. to share, this would make a great blog post for The Kill Bill story (http://thekillbillstory.wordpress.com)!

Cheers,

--
Pierre

Michiel Karnebeek

unread,
Mar 17, 2014, 6:20:51 AM3/17/14
to Pierre-Alexandre Meyer, Michiel Karnebeek, killbill...@googlegroups.com
That is very good news! Thank you for the information. I will provide more detail on the configuration when we scale it out.


--
You received this message because you are subscribed to a topic in the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/killbilling-users/fVdvvH9gr0s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/CAKXgekpFJd2yjGZh8AaLRR0dvsAtzry2gE-ZgaWmnq8WkaRVzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages