1. 程式人生 > >Understand Why Primary Nodes Have More Keys than a Replica

Understand Why Primary Nodes Have More Keys than a Replica

This discrepancy can occur after adding a read replica to an ElastiCache Redis (cluster mode disabled) cluster that contains a large number of keys with TTL (time-to-live) values that have expired. In this scenario, if you add a new read replica to an existing Redis (cluster mode disabled) cluster, the read replica issues a ‘sync’ command to obtain an RDB file snapshot of the primary node’s contents. When the read replica loads this RDB file into memory, it discards any keys that have expired.

This behavior is by design because Redis keys are expired both actively and passively as described at How Redis expires keys.

相關推薦

Understand Why Primary Nodes Have More Keys than a Replica

This discrepancy can occur after adding a read replica to an ElastiCache Redis (cluster mode disabled) cluster that contains a large number of

Males have greater reproductive success if they spend more time taking care of kids: New study seeks to understand why male moun

In a previous study, the researchers found that wild male mountain gorillas living in Rwanda do something that is quite unusual for a mammal -- they help

Why social media platforms and the Harry Potter universe have more in common than you think

Why social media platforms and the Harry Potter universe have more in common than you thinkThere’s a particular scene in the first Harry Potter film which

ElasticSearch6.5.0 【Rejecting mapping update to [posts] as the final mapping would have more than 1 type】

今天想在一個Index上增加一個type,結果報錯 java.lang.IllegalArgumentException: Rejecting mapping update to [posts] as the final mapping would have more than 1 type: [do

Can't have more than one marked region along edge

問題描述: android開發中為了保證圖示縮放後不變形會採用.9.png格式圖片,今天開發專案時根據UI設計師給的.png的圖示自己做了個.9圖示如下(“搜尋”也是做在圖片中的): 這樣是為了保證中間內容區不被縮放,但是放到專案中後build是報錯: Can’t have m

Error:(3, 12) Implementation restriction: case classes cannot have more than

構建DataFrame引數大於22(反射方式) 一.直接上程式碼 package com.etlstu import java.util.Properties import com.utils.NBF import com.utilsStu.logmetadata import o

Why AWS re:Invent is arguably more important than Amazon's Black Friday, Cyber Monday bonanza

Amazon will be the talk of Black Friday and Cyber Monday, but if you follow the money the more important event this week may be Amazon Web Services' re:Inv

component lists rendered with v-for should have explicit keys

end sts 原因 錯誤 簡單 img 出現 span 渲染 出現這個報錯的主要原因是 component lists rendered with v-for should have explicit keys 去官網看了下v-for,簡單說就是有相同父元素的子元素要

文章翻譯:Recommending items to more than a billion people(面向十億級用戶的推薦系統)

red 這不 得到 放大 條件 mage 上界 出了 color Web上數據的增長使得在完整的數據集上使用許多機器學習算法變得更加困難。特別是對於個性化推薦問題,數據采樣通常不是一種選擇,需要對分布式算法設計進行創新,以便我們能夠擴展到這些不斷增長的數據集。 協同過濾(C

Metamater high-speed ial Lens Has Ten Times More Power than Any Current Lens

(a) A centimeter-sized preform is assembled by stacking indium wires surrounded by Zeonex29 (a polymer with low absorption at tera

New sensors track dopamine in the brain for more than a year

Dopamine, a signaling molecule used throughout the brain, plays a major role in regulating our mood, as well as controlling movement. Many disorders, inclu

Ask HN: Please help me understand why the SEC settled with Elon Musk and Tesla

I don't want to talk about Elon Musk or Tesla here (it's valid conversation topic, but there's been a lot said already). I strictly want to understand why

Are you sharing more information than you want to?

Are you sharing more information than you want to?When you’re on your phone, is it really only you looking at the screen? When you’re on your social media,

Ask HN: Are CIO/CTO roles more vulnerable than other C

Specifically, I want to ask the following:1. Are CIO/CTOs more easily replacable than other C-Suite execs? - maybe because there's more talent competing he

AI will create millions more jobs than are lost because of economic growth

AI and related technologies such as robots, drones and autonomous vehicles could provide a net boost to employment in China of around 12% over the next two

Why Older People Have Always Trashed Young People

To understand why we keep doubting the young generation, we first need to appreciate the full scope of the problem. That means we can’t just look at any in

Google AI can spot advanced breast cancer more effectively than humans

LYNA was even more effective when serving as a companion -- pathologists performing simulated diagnoses found that the deep learning tech made their work e

New Artificial Intelligence Colonoscopy Aims To Catch 20 Percent More Abnormalities Than Traditional Testing

PHILADELPHIA (CBS) -- Colonoscopies are the best way to prevent colon cancer and now researchers are using artificial intelligence to make them more accura

natural language processing blog: Yet another list of things we can do to have more diverse sets of invited speakers

Great post Hal, and very timely as we start to consider such issues for NAACL 2019. I think disclosing conflicts of interest between those who are doing

Meditation Is More Complex Than Science Suggests

The huge interest in the benefits of meditation today is being catered to by an ever-expanding community of visionaries, proselytizers, teachers, and coach