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

Redis Gears only on slave #821

Open
NirmalP29 opened this issue Sep 1, 2022 · 1 comment
Open

Redis Gears only on slave #821

NirmalP29 opened this issue Sep 1, 2022 · 1 comment

Comments

@NirmalP29
Copy link

I have registered this redis gears function on the slave node in redis.

def reader(x):
if x['event'] == 'set':
execute('xadd', 'mystream', '*', x['key'], x['value'])

gb = GB()
gb.foreach(reader)
gb.register()

I want to write all the set commands received in slave from master in redis stream.
Master will have original data and slave will have that data in streams. Can anyone please tell me how can I achieve this?

@XhrCkYsSgZokJL
Copy link

Cannot run RG on a slave instance.

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

2 participants