Can I Use TiKV to Scale my SurrealDB
justkira
PROOP

a year ago

I'm proposing Railway as a deployment platform at my company based on my experience with it. However, during discussions, questions arose about replication and SurrealDB compatibility.
According to SurrealDB documentation, multi-node clustering requires TiKV. My specific questions are:

Is horizontal scaling possible for SurrealDB when deployed on Railway?
Does this scaling require TiKV?
If TiKV is required, is it feasible to deploy it on Railway, considering they support Docker images?

While I see that TiKV has Docker support, I have some concerns about its implementation in this context.

https://surrealdb.com/docs/surrealdb/installation/running/tikv
https://surrealdb.com/blog/clustered-surrealdb-for-1-0-0-beta9

31 Replies

justkira
PROOP

a year ago

N/A


justkira
PROOP

a year ago

Does replica works With SurrealDB?


justkira
PROOP

a year ago

Can I Use TiKV to Scale my SurrealDB


a year ago

took a look at the docs, tikv does look required to horizontally scale surreal so the blocker here is mainly figuring out how to run that on railway


justkira
PROOP

a year ago

well that we im stuck at im trying to figure things out befor i pull propse railway to the team


justkira
PROOP

a year ago


a year ago

was just gonna ask for that


justkira
PROOP

a year ago

which i feel similar to Railway Docs section about databases


a year ago

if tikv doesnt support ipv6 its an immediate no


justkira
PROOP

a year ago

well based on what i see they support it


justkira
PROOP

a year ago

ill double check


justkira
PROOP

a year ago

yes TiKV does support IPv6,


justkira
PROOP

a year ago

may not be as stable but i guess ill take it as win


a year ago

if you redeploy any one of the 6 nodes it will break, since ips on the priv net arent static


justkira
PROOP

a year ago

Could you clarify whether the issue arises if it does not support IPv6, or if it supports IPv6?


a year ago

if it doesnt support ipv6 then it simply can't work as separate services, if so, the 6 nodes will need to be ran inside the same container


justkira
PROOP

a year ago

Ok gotcha but based on what i have seen in docs it does support IPV6 so what now do i just build them normally like Redis cluster?


a year ago

then this is applicable, not a deal breaker, just stating a caveat


a year ago

do you have a test project that i could look at?


justkira
PROOP

a year ago

I need to get approval from my team lead first. I’ve proposed building two testing demos: one on Railway and the other using a standard Docker Swarm setup. In theory, I could build one of these this weekend and provide an update here.


justkira
PROOP

a year ago

but any thing i should look for while trying to build this testing infra


a year ago

does the urls passed to initial-cluster support domain names? since the private network is domains only


justkira
PROOP

a year ago

not sure.


a year ago

because the ipv6 ip is behind a domain name, you wouldnt have a good way to get the actual ip to use in that flag


justkira
PROOP

a year ago

im using ChatGPT to find me answer tbh there Docs are quite bad

1316247128909025300


justkira
PROOP

a year ago

but i guess ill find answers anyway when im testing'


a year ago

sounds good, and wherever you see 0.0.0.0 replace it with [::] because private network is 100% ipv6 only


justkira
PROOP

a year ago

if its ok to keep this thread open untill i start on demo to share progess and get feedback if possible


a year ago

of course


justkira
PROOP

a year ago

and I'm really, really thankful for your help. That's a lot of interesting information about IPv6 and Railway.


a year ago

happy to help where i can!


Loading...