Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Fastly Meetup #2 LT
tjun
April 16, 2019
Technology
0
4k
Fastly Meetup #2 LT
- Fastly monitoring at merpay
- Fastlyで404をキャッシュしてハマった話
tjun
April 16, 2019
Tweet
Share
More Decks by tjun
See All by tjun
tjun
6
1.2k
tjun
3
2.1k
tjun
6
10k
tjun
22
19k
tjun
1
1.9k
tjun
26
12k
tjun
3
5.7k
tjun
0
510
tjun
3
2.9k
Other Decks in Technology
See All in Technology
andoshin11
0
140
puhitaku
3
1.1k
conciergeu
0
120
yosuke_matsuura
PRO
0
170
karamem0
1
690
lmi
2
830
pohjus
0
3.3k
nakashin1
1
1.1k
picardparis
4
2.3k
cfisch3r
1
310
miura55
0
290
torisoup
10
5.1k
Featured
See All Featured
3n
163
22k
62gerente
587
200k
addyosmani
311
21k
kneath
295
39k
reverentgeek
27
2k
vanstee
117
4.8k
rasmusluckow
318
18k
trishagee
23
2.5k
cromwellryan
103
6.1k
sachag
446
36k
marcelosomers
220
15k
carmenhchung
30
1.5k
Transcript
@tjun merpay SRE team
日本最大のフリマアプリを提供する株式会社メ ルカリのグループ会社である株式会社メルペイ が運営するスマホ決済サービスです。 使わなくなったものをメルカリで売って得た売上 金や、銀行口座からチャージしたお金を、「メル カリ」やお店でのお支払いにご利用頂けます。 現在は iD決済とコード決済に対応しています。
3 Clients Merpay Gateway ServiceA ServiceB ServiceC GKE (Kubernetes) Fastly
Ingress
Fastly Integration (METRIC COLLECTION) in Datadog https://docs.datadoghq.com/integrations/fastly/ Metrics example: -
latency - cache hit rate - Request count - status
Log streaming: Google BigQuery https://docs.fastly.com/guides/streaming-logs/log-streaming-google-bigquery We sometimes run queries with
status_code, response_time, host, path, timestamp to detect errors, slow endpoints. Query example SELECT * FROM `project.fastly.default` WHERE host = "example.com" AND response_time >= 10000 AND timestamp > "2019-03-30 02:00:00" LIMIT 1000
Next step: We want to try Fastly Integration (LOG COLLECTION)
in Datadog https://docs.datadoghq.com/integrations/fastly/
@tjun merpay SRE team で が キャッシュされてしまった話
8 Clients Merpay Gateway ServiceA ServiceB ServiceC GKE (Kubernetes) Fastly
Ingress
9 Merpay Gateway GKE (Kubernetes) namespaceA nginx replica set pods
nodejs Service nginx nodejs nginx nodejs
10 Fastly nginx new replica set pods nodejs ... nginx
nodejs nginx nodejs nginx pods nodejs nginx nodejs nginx nodejs old replica set Client
11 Fastly nginx new replica set pods nodejs Service nginx
nodejs nginx nodejs nginx pods nodejs nginx nodejs nginx nodejs old replica set Client
• Do not host images on node.js microservices • Do
not cache 404 on this endpoit
まとめ 404 responseもキャッシュされるので気をつけましょう! We hiring!! Fastly使ってサービス作りたいSREを募集しています
14