marfeel:test
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
marfeel:test [2020/03/16 12:16] – dodger | marfeel:test [2020/10/23 09:50] (current) – removed dodger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Marfeel Test ====== | ||
- | |||
- | ====== App server ====== | ||
- | |||
- | ===== Why do you think different cache times for the nginx cache and for the browser were defined? ===== | ||
- | General answer: Caching is mandatory for performance. | ||
- | |||
- | * Particular answer to proxy cache: | ||
- | * I've configured nginx proxy_cache on ''/ | ||
- | * Particular answer to static content: | ||
- | * Static content to 1 hour maybe is aggressive, normally I set it up to 1day or more, also depends on the type of application. | ||
- | * Particular answer to proxied content: | ||
- | * I Think we must include a header like " | ||
- | |||
- | ====== Auto-scaling ====== | ||
- | ===== Ami and UserData ===== | ||
- | I did some mistakes, so I create some versions of it: | ||
- | * name : '' | ||
- | * id : '' | ||
- | |||
- | ===== Which code have you added to the user-data on launching the instance? ===== | ||
- | <code yaml> | ||
- | # | ||
- | |||
- | runcmd: | ||
- | - [ mkdir, -p, /opt/test ] | ||
- | - [ wget, -O/ | ||
- | - [ tar, xzfv, / | ||
- | - [ systemctl, start, marfeel_test ] | ||
- | - [ systemctl, restart, nginx ] | ||
- | </ | ||
- | |||
- | ===== Security group ===== | ||
- | I create the 001 group with https, then I remove it in the 2nd version: | ||
- | * name: '' | ||
- | |||
- | ===== auto-scaling Group ===== | ||
- | |||
- | * name: '' | ||
- | |||
- | |||
- | ====== Load balancer ====== | ||
- | |||
- | ===== Dynamic set up ===== | ||
- | |||
- | Done as required with a very simple bash script.\\ | ||
- | Dependencies for running the script: | ||
- | * '' | ||
- | * '' | ||
- | |||
- | \\ | ||
- | This script should be run by root. | ||
- | |||
- | Code: | ||
- | <file bash make_it_cool.sh> | ||
- | |||
- | |||
- | |||
marfeel/test.1584361002.txt.gz · Last modified: 2020/03/16 12:16 by dodger