Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
超Redisマスターになる話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
mickey
January 22, 2018
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
超Redisマスターになる話
mickey
January 22, 2018
More Decks by mickey
See All by mickey
BINDからの卒業
happysiro
1
2.5k
SSl と仲良くなるやり方
happysiro
1
3.8k
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
470
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.3k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
400
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
New Earth Scene 8
popppiees
4
2.7k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
870
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Leo the Paperboy
mayatellez
10
2.4k
Why Our Code Smells
bkeepers
PRO
340
58k
Transcript
ࡾπݡҰ(.01FQBCP *OD 5FDI.5( 3FEJTϚελʔʹͳΔ
ΠϯϑϥΤϯδχΞ .JDLFZ ٕज़෦ΠϯϑϥνʔϜ
͍֮͑ͯ·͔͢ʜ
3FEJTϚελʔʹͳΕͨͰ͠ΐ͏͔ʜʁ
3FEJTϚελʔʹͳΕͨͰ͠ΐ͏͔ʜʁ wͰɺॳΓ͔ͨͬͨ3FEJTΛ)"ʹ͢Δ͜ͱͰ͖ͨͱࢥ͏Αʜ
3FEJTΛԽ͢Δ
3FEJT4FOUJOFMͬͯʁ w3FEJT4FOUJOFMQSPWJEFTIJHIBWBJMBCJMJUZGPS3FEJT
4FOUJOFMΛߏங͍ͯ͘͠
ߏ . 4̍ 3 4 3 4 w.3FEJTͷ.BTUFS w3ɺ3FEJTͷ 3FQMJDB
4MBWF w4ɺɺ4FOUJOFM
ߏ . 4̍ 3 4 3 4 w4FOUJOFMɺ༻ҙ͢Δඞ ཁ͕͋Γ·͢
ߏ . 4̍ 3 4 wωοτϫʔΫোʹΑΓεϐ ϦοτϒϨΠϯ͕ൃੜͨ͠ͱ ͖ɺΫϥΠΞϯτͷϚελʔ ͷॻ͖ࠐΈΛ͛ͳ͍͔Β wͩͱ͛Δͷͩɺͱ͍͏
ओுʹ͍ͭͯݕূΛਐΊͭ ͭ֬ೝ͍͖ͯ͠·͠ΐ͏ . 4̍ . 4
4FOUJOFMͷઃఆ bind 0.0.0.0 port 26379 # Ϋϥελͷ໊લɺࢹ͢ΔMasterͷIPͱportɺquorum sentinel monitor mymaster
10.200.0.149 6379 2 # master͕Ԡ͠ͳ͘ͳ͔ͬͯΒোͱஅ͢Δ·Ͱͷ࣌ؒ sentinel down-after-milliseconds mymaster 5000
RVPSVNʹ͍ͭͯ w4FOUJOFM.BTUFS͕ࢮ͵ͱɺओ؍తͳࢮɺTEPXOΛଞͷ4FOUJOFMʹใࠂ͢Δ w4FOUJOFMɺTEPXO͕RVPSVNͷ͚ͩू·Δͱɺ.BTUFS͕٬؍తʹࢮΜͩɺ PEPXOͩͱஅ͢Δ wͦ͏͢Δͱɺ୭͕ϑΣΠϧΦʔόʔΛ୲͢Δ͔ɺ୭Λ.BTUFSʹ͢Δ͔Λܾ ΊͯϑΣΠϧΦʔόʔΛ։࢝͢Δ
ಈ࡞ݕূ
.BTUFSͷো . 4̍ 3 4 3 4 wఆ͢Δڍಈ w4ͱ4͕.ͷTEPXΛݕ w4ͱ4͕.ΛPEPXOͱ͢Δ
wϑΣΠϧΦʔόʔΛ։࢝͠4ͱ4 ͷͲͪΒ͔͕.BTUFSʹ
.BTUFSͷো
.BTUFSͷݽཱ . 4̍ 3 4 3 4 wఆ͢Δڍಈ w4.͕ੜ͖͍ͯΔͱࢥ͍ͬͯΔ w4ɺ4.͕ࢮΜͩͱࢥ͍ͬͯ
Δ w..BTUFSͷ·· w3ɺ3ͷͲͪΒ͔͕.BTUFSʹ
.BTUFSͷݽཱ . 4̍ 3 4 3 4 w.ʹॻ͖ࠐ·ΕͨΒͲ͏͢ΕΑ ͍Ͱ͠ΐ͏ʁ $MJFOU
.BTUFSͷݽཱ
͜͏ͳΒͳ͍Α͏ʹ͢Δʹʜʁ # slave͕1Ҏ্ɺੜ͖͍ͯͳ͍ͱMasterʹॻ͖ࠐΊͳ͘͢Δ min-slaves-to-write 1 # slave͕࠷ޙʹԠ͔ͯ͠Βͷ࣌ؒ min-slaves-max-lag 10
.BTUFSͱ4MBWFͷμϯ . 4̍ 3 4 3 4 wఆ͢Δڍಈ w4.͕PEPXOͩͱஅ͢Δͨ ΊʹඞཁͳRVPSVNΛ֬อͰ͖ͳ͍
ͷͰԿ͓͖ͳ͍
.BTUFSͱ4MBWFͷμϯ
·ͱΊ
·ͱΊ w3FEJT4FOUJOFMͰߏΛΉʹҎ্ͷ4FOUJOFM͕ඞཁ wεϐϦοτϒϨΠϯ͜Θ͍ wಉ࣌ʹࢮ͵ͱͲ͏͠ΐ͏ͳ͍