Is there an alternative to skip the election process of a slave in a Redis cluster, if there is only one slave for a master?Redis Sentinel : last node doesn't become masterSynchronizing between Redis Masterredis-cli CLUSTER NODES command shows different info on different nodes after CLUSTER RESETRedis Cluster 3.2.0 on EC2 t2.micro (no Elasticache)Recover connection when a new master is elected in the clusterRedis 3 Waiting for the cluster to joinRedis Master Slave Switch after Aof rewriteHow to reconnect Redis cluster nodes?Migration of data from slave to master in Redis Cluster
How to precisely measure small charges?
Atari ST DRAM timing puzzle
Are any jet engines used in combat aircraft water cooled?
As a 16 year old, how can I keep my money safe from my mother?
Are there any differences in causality between linear and logistic regression?
I want to copy my HOME folder to a USB flash drive but I can't. I accidentally removed Python 3 and lost many important stuff
Is this cheap "air conditioner" able to cool a room?
Physics of Guitar frets and sound
What happen if I gain the control of aura that enchants an opponent's creature? Would the aura stay attached?
Does LaTeX redefine [some] TeX primitives?
sed delete all the words before a match
Can a character who casts Shapechange and turns into a spellcaster use innate spellcasting to cast spells with a long casting time?
Dropdowns & Chevrons for Right to Left languages
Does this Foo machine halt?
English - Acceptable use of parentheses in an author's name
How does The Fools Guild make its money?
Double blind peer review when paper cites author's GitHub repo for code
A question about 'reptile and volatiles' to describe creatures
Ordering a word list
Does two puncture wounds mean venomous snake?
Can I call myself an assistant professor without a PhD
In the movie Harry Potter and the Order or the Phoenix, why didn't Mr. Filch succeed to open the Room of Requirement if it's what he needed?
SQL Minimum Row count
Can a College of Swords bard use Blade Flourishes multiple times in a turn?
Is there an alternative to skip the election process of a slave in a Redis cluster, if there is only one slave for a master?
Redis Sentinel : last node doesn't become masterSynchronizing between Redis Masterredis-cli CLUSTER NODES command shows different info on different nodes after CLUSTER RESETRedis Cluster 3.2.0 on EC2 t2.micro (no Elasticache)Recover connection when a new master is elected in the clusterRedis 3 Waiting for the cluster to joinRedis Master Slave Switch after Aof rewriteHow to reconnect Redis cluster nodes?Migration of data from slave to master in Redis Cluster
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have set up a Redis cluster with 4 masters and 4 slaves with the following node information:
127.0.0.1:8001> cluster nodes
88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 127.0.0.1:8009@18009 master - 0 1553593755000 51 connected 0-1165 5461-6627 10923-12088
e2a19e5e4e18327661837d8ce76b40648e6ac418 127.0.0.1:8003@18003 slave 6afaefabbac4d7cccbddbb1c793a7bb72cc10099 0 1553593755414 46 connected
6afaefabbac4d7cccbddbb1c793a7bb72cc10099 127.0.0.1:8007@18007 master - 0 1553593755000 46 connected 12089-16383
3ad52aacf49349d3e1173fb0545a081a2908b048 127.0.0.1:8006@18006 master - 0 1553593755113 50 connected 1166-5460
07d56713b49b4f0273a1d1ee9ad62f58613705e4 127.0.0.1:8004@18004 slave 7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 0 1553593755000 52 connected
e8c230d88f5abebcb96719cec7d665f2a57400d8 127.0.0.1:8001@18001 myself,slave 3ad52aacf49349d3e1173fb0545a081a2908b048 0 1553593755000 49 connected
7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 127.0.0.1:8008@18008 master - 0 1553593755314 52 connected 6628-10922
78c8f2ab053b0c2ce2f0635ad042e6c20ca707eb 127.0.0.1:8002@18002 slave 88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 0 1553593755000 51 connected
127.0.0.1:8001>
I want that if any master with a single slave goes down immediately the slave should be promoted to master by skipping the election process. Is there any possible way to achieve this?
redis redis-cluster
add a comment |
I have set up a Redis cluster with 4 masters and 4 slaves with the following node information:
127.0.0.1:8001> cluster nodes
88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 127.0.0.1:8009@18009 master - 0 1553593755000 51 connected 0-1165 5461-6627 10923-12088
e2a19e5e4e18327661837d8ce76b40648e6ac418 127.0.0.1:8003@18003 slave 6afaefabbac4d7cccbddbb1c793a7bb72cc10099 0 1553593755414 46 connected
6afaefabbac4d7cccbddbb1c793a7bb72cc10099 127.0.0.1:8007@18007 master - 0 1553593755000 46 connected 12089-16383
3ad52aacf49349d3e1173fb0545a081a2908b048 127.0.0.1:8006@18006 master - 0 1553593755113 50 connected 1166-5460
07d56713b49b4f0273a1d1ee9ad62f58613705e4 127.0.0.1:8004@18004 slave 7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 0 1553593755000 52 connected
e8c230d88f5abebcb96719cec7d665f2a57400d8 127.0.0.1:8001@18001 myself,slave 3ad52aacf49349d3e1173fb0545a081a2908b048 0 1553593755000 49 connected
7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 127.0.0.1:8008@18008 master - 0 1553593755314 52 connected 6628-10922
78c8f2ab053b0c2ce2f0635ad042e6c20ca707eb 127.0.0.1:8002@18002 slave 88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 0 1553593755000 51 connected
127.0.0.1:8001>
I want that if any master with a single slave goes down immediately the slave should be promoted to master by skipping the election process. Is there any possible way to achieve this?
redis redis-cluster
With single slave per master, I think there will be very short time in election, why you want to skip for your use case ?
– Anuj Vishwakarma
Apr 15 at 18:47
Since I have single slave I already know that only this slave will be promoted as master.So I want to skip the election process to minimize the delay due to election process.
– Ratnesh Tiwari
Apr 19 at 5:32
add a comment |
I have set up a Redis cluster with 4 masters and 4 slaves with the following node information:
127.0.0.1:8001> cluster nodes
88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 127.0.0.1:8009@18009 master - 0 1553593755000 51 connected 0-1165 5461-6627 10923-12088
e2a19e5e4e18327661837d8ce76b40648e6ac418 127.0.0.1:8003@18003 slave 6afaefabbac4d7cccbddbb1c793a7bb72cc10099 0 1553593755414 46 connected
6afaefabbac4d7cccbddbb1c793a7bb72cc10099 127.0.0.1:8007@18007 master - 0 1553593755000 46 connected 12089-16383
3ad52aacf49349d3e1173fb0545a081a2908b048 127.0.0.1:8006@18006 master - 0 1553593755113 50 connected 1166-5460
07d56713b49b4f0273a1d1ee9ad62f58613705e4 127.0.0.1:8004@18004 slave 7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 0 1553593755000 52 connected
e8c230d88f5abebcb96719cec7d665f2a57400d8 127.0.0.1:8001@18001 myself,slave 3ad52aacf49349d3e1173fb0545a081a2908b048 0 1553593755000 49 connected
7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 127.0.0.1:8008@18008 master - 0 1553593755314 52 connected 6628-10922
78c8f2ab053b0c2ce2f0635ad042e6c20ca707eb 127.0.0.1:8002@18002 slave 88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 0 1553593755000 51 connected
127.0.0.1:8001>
I want that if any master with a single slave goes down immediately the slave should be promoted to master by skipping the election process. Is there any possible way to achieve this?
redis redis-cluster
I have set up a Redis cluster with 4 masters and 4 slaves with the following node information:
127.0.0.1:8001> cluster nodes
88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 127.0.0.1:8009@18009 master - 0 1553593755000 51 connected 0-1165 5461-6627 10923-12088
e2a19e5e4e18327661837d8ce76b40648e6ac418 127.0.0.1:8003@18003 slave 6afaefabbac4d7cccbddbb1c793a7bb72cc10099 0 1553593755414 46 connected
6afaefabbac4d7cccbddbb1c793a7bb72cc10099 127.0.0.1:8007@18007 master - 0 1553593755000 46 connected 12089-16383
3ad52aacf49349d3e1173fb0545a081a2908b048 127.0.0.1:8006@18006 master - 0 1553593755113 50 connected 1166-5460
07d56713b49b4f0273a1d1ee9ad62f58613705e4 127.0.0.1:8004@18004 slave 7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 0 1553593755000 52 connected
e8c230d88f5abebcb96719cec7d665f2a57400d8 127.0.0.1:8001@18001 myself,slave 3ad52aacf49349d3e1173fb0545a081a2908b048 0 1553593755000 49 connected
7c4e0d35fdd1901666d7e0ed4a2298ec73c6e209 127.0.0.1:8008@18008 master - 0 1553593755314 52 connected 6628-10922
78c8f2ab053b0c2ce2f0635ad042e6c20ca707eb 127.0.0.1:8002@18002 slave 88d364e0b20e6ec6a471ec6f12d41b82b5f5eab5 0 1553593755000 51 connected
127.0.0.1:8001>
I want that if any master with a single slave goes down immediately the slave should be promoted to master by skipping the election process. Is there any possible way to achieve this?
redis redis-cluster
redis redis-cluster
edited Mar 27 at 7:08
karel
2,5049 gold badges29 silver badges32 bronze badges
2,5049 gold badges29 silver badges32 bronze badges
asked Mar 27 at 7:05
Ratnesh TiwariRatnesh Tiwari
12 bronze badges
12 bronze badges
With single slave per master, I think there will be very short time in election, why you want to skip for your use case ?
– Anuj Vishwakarma
Apr 15 at 18:47
Since I have single slave I already know that only this slave will be promoted as master.So I want to skip the election process to minimize the delay due to election process.
– Ratnesh Tiwari
Apr 19 at 5:32
add a comment |
With single slave per master, I think there will be very short time in election, why you want to skip for your use case ?
– Anuj Vishwakarma
Apr 15 at 18:47
Since I have single slave I already know that only this slave will be promoted as master.So I want to skip the election process to minimize the delay due to election process.
– Ratnesh Tiwari
Apr 19 at 5:32
With single slave per master, I think there will be very short time in election, why you want to skip for your use case ?
– Anuj Vishwakarma
Apr 15 at 18:47
With single slave per master, I think there will be very short time in election, why you want to skip for your use case ?
– Anuj Vishwakarma
Apr 15 at 18:47
Since I have single slave I already know that only this slave will be promoted as master.So I want to skip the election process to minimize the delay due to election process.
– Ratnesh Tiwari
Apr 19 at 5:32
Since I have single slave I already know that only this slave will be promoted as master.So I want to skip the election process to minimize the delay due to election process.
– Ratnesh Tiwari
Apr 19 at 5:32
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371546%2fis-there-an-alternative-to-skip-the-election-process-of-a-slave-in-a-redis-clust%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371546%2fis-there-an-alternative-to-skip-the-election-process-of-a-slave-in-a-redis-clust%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
With single slave per master, I think there will be very short time in election, why you want to skip for your use case ?
– Anuj Vishwakarma
Apr 15 at 18:47
Since I have single slave I already know that only this slave will be promoted as master.So I want to skip the election process to minimize the delay due to election process.
– Ratnesh Tiwari
Apr 19 at 5:32