-
1. Re: Clustered environment with non persistent messages ?
mvecera Jan 24, 2008 9:08 AM (in response to kemp40)Hello,
I'm afraid it is not very safe to have non-persistent messages here. The clustered queue shares the messages in database. If the messages aren't persistent and one node in the cluster has a message ready for processing, the message can be lost in the case of failure.
But I would suggest you first switch to JBoss Messaging 1.4.0.SP3 and ideally a newer JBoss AS (4.2)... -
2. Re: Clustered environment with non persistent messages ?
kemp40 Jan 24, 2008 3:40 PM (in response to kemp40)That's bad news.
Anyway, as you said - I'm gonna first switch to JBM1.4 + JBOSS4.2, do some real - life stress tests, compare to actual deployment configuration and we'll see.
Btw, wouldn't be a really cool idea to replicate non-persistent messages among active nodes to gain performance, it's really unlikely to have all nodes crush ... ;)
Thanks for answer ! -
3. Re: Clustered environment with non persistent messages ?
timfox Jan 24, 2008 5:11 PM (in response to kemp40)"kemp40" wrote:
Btw, wouldn't be a really cool idea to replicate non-persistent messages among active nodes to gain performance, it's really unlikely to have all nodes crush ... ;)
Hello kemp,
Martin's comment was not correct, JBoss Mesaging *does* cluster non persistent messages too :) -
4. Re: Clustered environment with non persistent messages ?
kemp40 Jan 25, 2008 4:44 AM (in response to kemp40)Tim,
That's exactly what I wanted to hear.
I'm just about to configure such environment - I'll report users about the test results in the comparison with current environment:
JBossMQ+JBoss4.0.5 (persistent msg) VS. JBM+JBoss4.2(clustered + non-persistent msg)
Much appreciated,
Kemp -
5. Re: Clustered environment with non persistent messages ?
mvecera Jan 28, 2008 7:15 AM (in response to kemp40)Hello,
I didn't say that it doesn't support clustering of non-persistent messages. It is possible to cluster them but the message can be lost! kemp40 said that this is unacceptable to him... -
6. Re: Clustered environment with non persistent messages ?
timfox Jan 28, 2008 7:19 AM (in response to kemp40)The point with non persistent messages, is they are not persisted, ==> they do not survive failure.
Users use non persistent messages when they want higher performance but they can cope with message loss.
If we had to persist non persistent messages too, that would kind of defeat the purpose for their existence! :)
E.g. a stock ticker application would probably use non persistent messages, since market data goes out of date very quickly (sub second) and later messages can supercede earlier messages so you don't care if you lose messages.
If we didn't have non persistent messages and only had persistent messages then we would be losing performance for applications that don't need the reliability
It would be silly if we persisted non persistent messages too - since they wouldn't be non persistent any more.
The JMS spec is quite clear on this.