Can I Use TiKV to Scale my SurrealDB
justkira
PROOP

2 years 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

Closed

31 Replies

justkira
PROOP

2 years ago

N/A


justkira
PROOP

2 years ago

Does replica works With SurrealDB?


justkira
PROOP

2 years ago

Can I Use TiKV to Scale my SurrealDB


2 years 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

2 years ago

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


justkira
PROOP

2 years ago


2 years ago

was just gonna ask for that


justkira
PROOP

2 years ago

which i feel similar to Railway Docs section about databases


2 years ago

if tikv doesnt support ipv6 its an immediate no


justkira
PROOP

2 years ago

well based on what i see they support it


justkira
PROOP

2 years ago

ill double check


justkira
PROOP

2 years ago

yes TiKV does support IPv6,


justkira
PROOP

2 years ago

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


2 years ago

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


justkira
PROOP

2 years ago

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


2 years 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

2 years 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?


2 years ago

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


2 years ago

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


justkira
PROOP

2 years 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

2 years ago

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


2 years ago

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


justkira
PROOP

2 years ago

not sure.


2 years 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

2 years ago

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

1316247128909025352


justkira
PROOP

2 years ago

but i guess ill find answers anyway when im testing'


2 years ago

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


justkira
PROOP

2 years ago

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


2 years ago

of course


justkira
PROOP

2 years ago

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


2 years ago

happy to help where i can!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...