ΩϟογϡώοτͷܭࢉʢShielding͕༗ޮͳ߹ʣ
Hit Ratio(True) = (1 − miss − shield
requests − shield
) × 100
miss: Number of cache misses
shield: number of requests from Shield to Origin
requests: Number of Requests Processed
The truth about cache hit ratios: https://www.fastly.com/blog/truth-about-cache-hit-ratios
Slide 14
Slide 14 text
ΩϟογϡώοτͷܭࢉʢShielding͕༗ޮͳ߹ʣ
Hit Ratio(True) = (1 − miss − shield
requests − shield
) × 100
mfc configuration
$ cat ~/.fastly/conf.toml
[target]
service = “service-A”
[[services]]
service = “service-A”
apikey = “…”
waf = “…”
[[services]]
service = “service-B”
apikey = “…”
Slide 27
Slide 27 text
Usage of mfc
•
$ mfc
Usage of mfc:
config
the utility for mfc configuration
service
the utility for fastly service
acl
the utility for fastly ACL
waf
the utlity fro fastly WAF
(etc…)
• ػೳྖҬຖʹαϒίϚϯυΛఆٛ
• ACL, Service, Version
• ॳผʑͷϓϩάϥϜ͚ͩͬͨͲɺ૿͖͑ͯͨͷͰ౷߹
switch args[1] {
case “config”:
return config.NewCLI().Run(args)
case “service”:
return service.NewCLI().Run(args)
case “acl”:
return acl.NewCLI().Run(args)
case “…”
…
}
ಈ࡞Πϝʔδ
ActiveͳόʔδϣϯΛநग़͢Δ
• ConfigurationܥͷAPIόʔδϣϯͷࢦఆΛཁٻ͢Δͷ͕ଟ͍
• e.g. ACL
• GET /service/service_id/version/version/acl
• mfcʹΑΔૢ࡞activeͳόʔδϣϯʹରͯ͠ߦ͏ͷ͕ଟ͍
• ຖճactiveͳόʔδϣϯͲΕ͚ͩͬʁΈ͍ͨͳࣄଶ໘ͳͷͰආ͚͍ͨ
• e.g. mfc acl show activeͳόʔδϣϯΛࣗಈͰऔಘ࣮ͯ͠ߦ͞ΕΔ