First of all we need to be clear about what we mean / want to achieve by "clustering".
If we are talking about clustering for reliability/HA then we need to be very clear that the limitations AMQP 0-8/0-9/0-9-1 prevent us from actually implementing this unless we mandate that every message published into the broker is inside a transaction (due to the fact that published messages are not acknowledges for AMQP 0-x versions where x < 10). The next issue is that the Java broker has not really been designed with clustering in mind - it's therefore not clear inside the code which pieces of state need to be replicated / where the broker should wait to hear that state has been successfully replicated before proceeding. My personal view on clustering is that we need to spend a fair amount of time thinking about the internal architecture of the broker before we start worrying about what other libraries / tools we pull in. There are probably ways of doing and active-passive cluster relatively cheaply (essentially replicating the store to the passive broker) - I'm not sure if this would help your use case Lahiru. Having said all the above, I am very keen to add clustering functionality to the Java Broker, and I've some vague notion that I should start looking at this later in the year. Personally I'd be looking at doing it after whatever re-architecting is done for supporting AMQP 1-0. Sorry if I sound discouraging - and if someone can come along and show an easy way to add clustering, I'd be impressed. Cheers, Rob On 7 July 2010 00:30, Lahiru Gunathilake <[email protected]> wrote: > Hi devs, > > Last couple of weeks I was working with Qpid Java broker in an actual > production environment and I encounter a scenario where we should cluster > Qpid and since we do not have a native clustering support we found a > solution to the single point of failure of Qpid but it is not an actual > cluster since we do not replicate the messages among nodes. So I would be > really happy to work in a clustering implementation for Qpid. > > Appreciate your ideas on this and I will update the list once we discuss a > proper design for clustering implementation. > > Regards > Lahiru > > -- > Apache Qpid, Worlds dominant messaging middleware..!!! > > Senior Software Engineer > WSO2 Inc > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
