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
200
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
270
open telemetry w/ Ruby
kyanagimoto
0
190
nikotama.rb #10
kyanagimoto
0
280
Developers Summit 2020 - 13-A-5
kyanagimoto
0
1.9k
Nikotama.rb #9
kyanagimoto
0
230
Nikotama.rb #8
kyanagimoto
0
130
CNCF for Rubyist
kyanagimoto
0
290
Nikotama.rb #7
kyanagimoto
0
310
Rails6 New Functions
kyanagimoto
0
120
Other Decks in Technology
See All in Technology
オブジェクト指向宗教史
tanakahisateru
13
11k
XRミーティング 2024-03-20
1ftseabass
PRO
0
100
バッチ処理のSLOをどう設計するか
rynsuke
7
550
ビジネスロジックを「型」で表現するOOPのための関数型DDD / Functional And Type-Safe DDD for OOP
yuitosato
29
11k
沒想過的前端錯誤處理可能比你有做的還多
line_developers_tw
PRO
0
2k
AWS アーキテクチャクイズ
yuu26
2
700
継続的テストモデルを実現するためにスリーアミーゴスを用いた10Xでのシフトレフトの事例
nihonbuson
3
150
データ化エンジニアとしての1年を振り返る
sansantech
PRO
3
250
これまでのキャリアとこれからMLエンジニアとしてどう動くか
masatakashiwagi
0
210
サービスメッシュ環境における OpenTelemetry 活用 / OpenTelemetry in Service Mesh
k6s4i53rx
2
820
業務で使えるかもしれない…!?GitHub Actions の Tips 集 / CI/CD Test Night #7
ponkio_o
PRO
23
6.9k
KubeCon EU 2024 : Knative Maintainers Session
salaboy
0
370
Featured
See All Featured
Design by the Numbers
sachag
274
18k
Into the Great Unknown - MozCon
thekraken
10
830
A better future with KSS
kneath
230
16k
Docker and Python
trallard
33
2.6k
Side Projects
sachag
451
41k
Scaling GitHub
holman
456
140k
Designing with Data
zakiwarfel
94
4.8k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.2k
What's new in Ruby 2.0
geeforr
335
31k
The World Runs on Bad Software
bkeepers
PRO
60
6.6k
Building Better People: How to give real-time feedback that sticks.
wjessup
350
18k
Code Review Best Practice
trishagee
54
15k
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