Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riot v4 replicate syntax doesn't seem to work #153

Open
nerusnayleinad opened this issue Jul 22, 2024 · 2 comments
Open

Riot v4 replicate syntax doesn't seem to work #153

nerusnayleinad opened this issue Jul 22, 2024 · 2 comments

Comments

@nerusnayleinad
Copy link

I tried to replicate a redis database to ElastiCache with the latest Riot version (4.0.4), but the syntax seems to be wrong, and I can't figure out the right one.

So, if you type riot replicate --help, Ill get this as referene:

$ ./riot replicate --help
Usage: riot replicate [OPTIONS] SOURCE TARGET
Replicate a Redis database into another Redis database.
      SOURCE                 Source server URI.
      TARGET                 Target server URI.
       ...

Then it starts complainint about not being able to convert the endpoint into redis URI, but eventually I end up with the following command that seems to be the right one, but it is not, as it returns the 0/0.

./ riot replicate redis://1.2.3.4 redis://redis-somthing-something.r4mtmg.12345.region.cache.amazonaws.com
Scanning  ? % [] 0/0 (0:00:00 / ?) ?/s
Comparing  ? % [] 0/0 (0:00:00 / ?) ?/s

I added the -i flag, and it sets up 127.0.0.1 as host!?

[main] INFO com.redis.riot.Replicate - Creating source Redis client with RedisClientBuilder [uri=redis://1.2.3.4, host=127.0.0.1, port=6379, socket=null, username=null, password=null, timeout=PT1M, database=0, clientName=RIOT4.0.4, tls=false, verifyMode=FULL, cluster=false, autoReconnect=true, protocolVersion=RESP3]

It also sets database to be 0. I don't seem to have flags to edit these parameters. there is no host parameter in the new version, port, db, etc.

I ended up downloading 3.2.3 to get the job done.

Could you let me know what's the right command to replicate two databases with the v4?

@iam-veeramalla
Copy link

+1 , the latest version seems to be broken.

@jruaux
Copy link
Collaborator

jruaux commented Sep 15, 2024

Can you try with the latest RIOT early-access?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants