Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Consul use case
Search
k.yanagimoto
April 04, 2019
Technology
1
230
Consul use case
Share about Hashicorp Consul in our group.
k.yanagimoto
April 04, 2019
Tweet
Share
More Decks by k.yanagimoto
See All by k.yanagimoto
cloudnative days tokyo online 2021 - 311
kyanagimoto
0
390
open telemetry w/ Ruby
kyanagimoto
0
290
nikotama.rb #10
kyanagimoto
0
380
Developers Summit 2020 - 13-A-5
kyanagimoto
0
2.1k
Nikotama.rb #9
kyanagimoto
0
280
Nikotama.rb #8
kyanagimoto
0
170
CNCF for Rubyist
kyanagimoto
0
390
Nikotama.rb #7
kyanagimoto
0
390
Rails6 New Functions
kyanagimoto
0
140
Other Decks in Technology
See All in Technology
継続戦闘能⼒
sansantech
PRO
0
190
令和トラベルQAのAI活用
seigaitakahiro
0
410
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.2k
人とAIとの共創を夢見た2か月 #共創AIミートアップ / Co-Creation with Keito-chan
kondoyuko
1
530
AIのための オンボーディングドキュメントを整備する - hirotea
hirotea
9
2k
MCP で繋ぐ Figma とデザインシステム〜LLM を使った UI 実装のリアル〜
kimuson
1
990
Slackひと声でブログ校正!Claudeレビュー自動化編
yusukeshimizu
3
130
declaration mergingの威力:ライブラリアップデート時の書き換え作業を90%短縮するテクニック
yutake27
2
250
スプリントゴールで価値を駆動しよう
takufujii
3
1.6k
Machine Intelligence for Vision, Language, and Actions
keio_smilab
PRO
0
280
What's Next in OpenShift Q2 CY2025
redhatlivestreaming
0
110
CSS polyfill とその未来
ken7253
0
120
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.3k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Rails Girls Zürich Keynote
gr2m
94
13k
Into the Great Unknown - MozCon
thekraken
38
1.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Making the Leap to Tech Lead
cromwellryan
133
9.3k
Designing for humans not robots
tammielis
253
25k
Building Adaptive Systems
keathley
41
2.6k
The Cost Of JavaScript in 2023
addyosmani
49
7.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
19
1.2k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
Transcript
Consul use case Apr 4, 2019 Koichi Yanagimoto EC Incubation
Development Dept. Rakuten, Inc.
Today’s Topic Today’s topic
Who am I ? Koichi Yanagimoto @kyanagimoto Application Engineer Rakuten,
Inc.
4 Consul? Service Discovery Service Segmentation Service Configuration
5 Consul?
6 Our use case
7 Our use case consul agent consul agent { "service":
{ "name": "varnish" } } consul_service.json consul agent -data-dir=/consul/data -retry-join=consul.server.ip -client=0.0.0.0
8 Our use case consul agent consul agent consul template
consul-template \ -template "squid.ctmpl:/etc/squid.conf:/etc/squid/sbin/squid -f /etc/squid.conf -k reconfigure"
9 Squid.ctmpl http_port 80 accel http_port 81 accel vport=80 {{
range service "varnish" }} cache_peer {{ .Address }} parent 8080 0 carp proxy-only no-digest no-query no-netdb-exchange weight=100 originserver {{ end }} include /etc/squid/image_space_common.conf cache_access_log /var/log/squid/access_image_space.log access_log_format cache_log /var/log/squid/response_image_space.log responce_log_format cache_swap_log /var/log/squid/cache_swap_image_space.log pid_filename /var/run/squid_image.pid
10 Our use case Kubernetes
11 DEMO
None