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
210
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
320
open telemetry w/ Ruby
kyanagimoto
0
240
nikotama.rb #10
kyanagimoto
0
330
Developers Summit 2020 - 13-A-5
kyanagimoto
0
2k
Nikotama.rb #9
kyanagimoto
0
250
Nikotama.rb #8
kyanagimoto
0
140
CNCF for Rubyist
kyanagimoto
0
340
Nikotama.rb #7
kyanagimoto
0
350
Rails6 New Functions
kyanagimoto
0
120
Other Decks in Technology
See All in Technology
Envoy External AuthZとgRPC Extensionを利用した「頑張らない」Microservices認証認可基盤
andoshin11
0
200
CRTO/CRTL/OSEPの比較・勉強法とAV/EDRの検知実験
chayakonanaika
1
960
音声AIエージェントの世界とRetell AI入門 / Introduction to the World of Voice AI Agents and Retell AI
rkaga
4
840
Azure Cosmos DB での時系列ログの運用と改善
sansantech
PRO
0
210
データウェアハウス製品のSnowflakeでPythonが動くって知ってました?
foursue
1
160
LLMに日本語テキストを学習させる意義
ksaito
13
3.6k
夏休みの(最後の)宿題 for JuliaTokyo #12
antimon2
0
130
Monitor GraalVM Native Apps with OpenTelemetry
logico_jp
0
100
手軽に始める? おうちサーバーのすゝめ
nyagasan
0
190
標準最高!標準はださくないぞ! at fukuoka.ts #1
yoiwamoto
0
160
20240906_JAWS_Yamanashi_#1_leap_beyond_the_AWS_all_certifications
tsumita
1
210
四国クラウドお遍路 2024 in 高知 エンディング
yukataoka
0
150
Featured
See All Featured
Bash Introduction
62gerente
608
210k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
278
13k
Atom: Resistance is Futile
akmur
261
25k
Statistics for Hackers
jakevdp
793
220k
Embracing the Ebb and Flow
colly
83
4.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
359
18k
Music & Morning Musume
bryan
46
6k
In The Pink: A Labor of Love
frogandcode
139
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
363
22k
GitHub's CSS Performance
jonrohan
1029
450k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
25
2k
Art, The Web, and Tiny UX
lynnandtonic
294
20k
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