Scalability issue with titan (0.5.4) and upgrade version from 0.5.4 to 1.0.0
Ted Wilmes <twi...@...>
toggle quoted messageShow quoted text
You will need to perform a data migration from 0.5.4 to Titan 1.0 or JanusGraph. Daniel Kuppitz and Stephen Mallette put together an example migration from 0.5.4 to 1.0.0 here: https://github.com/dkuppitz/openflights. You'll need to carefully think through how you'd do this in production and I'd recommend many practice runs on test systems to get it right first! As far as if OLTP, I'd suggest profiling your system to see where the slowdown is. Maybe there are particular queries that need to be optimized or possibly you can tune your Cassandra configuration. First thing first though, you'll need to figure out where the bottlenecks are.
On Monday, January 30, 2017 at 9:14:58 AM UTC-6, ankit tyagi wrote:
ankit tyagi <ankitty...@...>
Currently, I am using titan graph0.5.4 for making the social graph out of user activities like (user1-->follows-->user2, user1-->likes-->object2 etc.).
Earlier when I started using it, a number of activities, users etc. were quite small and since then it is growing daily. So to give approximate numbers I have around 20 million user nodes and 50 million objects nodes and obviously billions of edges :).
I have exposed APIs on this social graph using tinker pop library in java eg. get followers, following of user1 etc. I am using Cassandra(version2.0.14) as the underlying database.
Throughput is around 50K rpm.
So, overall loads of deletion, insertion, update, reads are happening on daily basis.
Problems I am facing
If read increases, load gets quite high on my machines (machine config RAID-1 , 1 TB DISK ,32 core, 64GB RAM, 4 similar machines, replication fact 3, Levelled compaction)
Response time/SLA of APIs also degraded over a period of time.
Can I use titan for serving this type of real time queries, or should I keep it only for analytics purpose to explore/recommend user data?
Do I need to change my Cassandra configurations or machines configuration to improve performance?
Any suggestions for scaling/serving this type of data?
For more explanation or any other thing, please do ping. I am quite stuck over this problem :/
For using JanusGraph, we need to migrate our current version to 1.0.0. Do we need data migration also because I am getting below exception while loading graph with 1.0.0.
Required size  exceeds actual remaining size 
Display stack trace? [yN] y
java.lang.ArrayIndexOutOfBoundsException: Required size  exceeds actual remaining size 
I am using below configuration to load the graph.