" /> Cassandra multinode - Genesys CTI User Forum

Author Topic: Cassandra multinode  (Read 8386 times)

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Cassandra multinode
« on: September 16, 2013, 02:09:02 PM »
Advertisement
Hi All

I'm going to set up ORS in production environment and faced with question of Cassandra HA. If i want deploy ORS in primary+backup mode, what the minimum number of Cassandra nodes do i need?
Looks like the minimum is 3,but is it possible to set up only 2 like standard primary/backup or this config can't provide desired consistency?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Cassandra multinode
« Reply #1 on: September 16, 2013, 02:16:57 PM »
I think that Cassanda cannot be in standard primary-backup mode, but "only" in multinode deployment (Cassandra cluster), where each cluster is in "active" mode and the data are replicated trough whole cluster for SPOF (single point of failure) protection. Cassandra(Apache) is not a Genesys product, so, does not search any common behavior or configuration. So, my opinion is that you can create how many nodes you want and no limits or pre-requisite are there, except min. number of nodes in multi-node deploy are two :-)
« Last Edit: September 16, 2013, 02:21:20 PM by Kubig »

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #2 on: September 16, 2013, 02:19:49 PM »
i know about it. but i'm trying to understand how to set it up in HA environment.  What is minimal Cassandra nodes enough to make ORS redundant?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Cassandra multinode
« Reply #3 on: September 16, 2013, 02:23:01 PM »
For ORS redundany you do not deal with Cassandra, but if you want to have Cassandra in no SPOF deployment too, you have to create two nodes at least.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #4 on: September 16, 2013, 02:24:22 PM »
two nodes is ok, thank you!

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #5 on: September 16, 2013, 03:16:30 PM »
another one question in ORS context ;) integration with context services in HA mode.
how to understand in SCXML to which of HA pair UCS (context services) should i connect? UCS doesn't provide virtual IP or something similar, the one way that i see is connecting to UCS_p and in case of error connect to backup UCS_b. Any other suggestions?

Offline GMG

  • Newbie
  • *
  • Posts: 41
  • Karma: 2
  • GCP CIV 8X
Re: Cassandra multinode
« Reply #6 on: September 17, 2013, 04:12:09 AM »
Smile,

First ORS works in load balancing mode(Active + Active),  N+1 architecture style.

Second minimum cassandra nodes required is 1, if you have 2 ORS, you can use same/single cassandra node in both ORS.


--
GMG
« Last Edit: September 17, 2013, 04:45:24 AM by GMG »

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #7 on: September 17, 2013, 07:33:36 AM »
Thanx, GMG, understood.

What about integration with UCS and OCS via http interface? How can i know which node is primary?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Cassandra multinode
« Reply #8 on: September 17, 2013, 08:20:50 AM »
I think that you do not need determine which node is primary, because all nodes should be with same role and each node should return same type of data. If you want to know more about Cassandra, forgot on Genesys doc and look at Cassandra Apache project web sites.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #9 on: September 17, 2013, 09:08:32 AM »
ok, moved question to new topic http://www.sggu.com/smf/index.php/topic,8001.0.html

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #10 on: September 17, 2013, 01:28:24 PM »
Found answer on my question.

A quorum is calculated as (rounded down to a whole number): (replication_factor / 2) + 1

if we have 2 nodes cluster, then we will have to set replication_factor (RF) = 2: 2/2+1 = 2. quorum=2, i.e. every write transaction must be stored into 2 nodes. In case of one node failure, Cassandra can't do this.

If we have 3 nodes cluster and RF=2, quorum=2 as well, but in this case if one node failure, we still have two nodes for data writing.

Finally i decide to set up 4 Cassandra nodes and set RF=2.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Cassandra multinode
« Reply #11 on: September 17, 2013, 01:36:40 PM »
Great, very useful for others including me :-) The ORS is not deployed in high number, to tell truth, I have no customer with ORS in production env, so I never solve your needs, so do not know real-life experience. may be, in next years, will the count of customers with ORS increase. Personally, I do no see any adantages of using ORS in real-lie, but this is my opinion :-)

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #12 on: September 17, 2013, 01:46:20 PM »
ORS looks a little strange, but now we have a number of requests from our customers, first of all in proactive eservices, outbound area and complex IVR with external web services (without GVP). I found that using direct scxml request like ixn:createmessage WITH javascript give us more flexibility to render content of messages (sms and email) than URS can provide.
Migration to ORS is unavoidable, it's just a question of time ;)

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Cassandra multinode
« Reply #13 on: September 17, 2013, 02:44:40 PM »
[quote author=Kubig link=topic=8000.msg35141#msg35141 date=1379428254]
Yes, it is partly right. But for execution SCXML files you do not need ORS
[/quote]

what do you mean?  :o

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Cassandra multinode
« Reply #14 on: September 18, 2013, 02:03:46 PM »
If this is production env I would wait 2 weeks because new ORS will be released soon and it will have different architecture for HA (cassandra will still be there). Most of customers I've seen are using 2 nodes of cassandra per data centre. In practise with 2 node setup system still works with just one cassandra up.