Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
opennic:infra:wiki [2017-07-19T21:22:08Z] – fusl | opennic:infra:wiki [2017-09-09T02:38:48Z] – fusl |
---|
==== Details ==== | ==== Details ==== |
* Auto Scaling Group: ''prod-wiki'' | * Auto Scaling Group: ''prod-wiki'' |
* Launch Configuration: ''prod-wiki-20170506-4'' | * Launch Configuration: ''prod-wiki-20170909'' |
* Load Balancers: - | * Load Balancers: - |
* Target Groups: ''prod-wiki'' | * Target Groups: ''prod-wiki'' |
=== prod-wiki-high === | === prod-wiki-high === |
* Policy type: ''Simple scaling'' | * Policy type: ''Simple scaling'' |
* Execute policy when: ''prod-wiki-high'' (breaches the alarm threshold: ''TargetResponseTime >= 1'' for *300* seconds for the metric dimensions ''LoadBalancer = app/prod-wiki/0ec4b8b4601b350c'') | * Execute policy when: ''prod-wiki-high'' (breaches the alarm threshold: ''TargetResponseTime >= 1'' for ''300'' seconds for the metric dimensions ''LoadBalancer = app/prod-wiki/0ec4b8b4601b350c'') |
* Take the action: ''Add 2 instances'' | * Take the action: ''Add 2 instances'' |
* And then wait: ''180 seconds before allowing another scaling activity'' | * And then wait: ''180 seconds before allowing another scaling activity'' |
=== prod-wiki-low === | === prod-wiki-low === |
* Policy type: ''Simple scaling'' | * Policy type: ''Simple scaling'' |
* Execute policy when: ''prod-wiki-low'' (breaches the alarm threshold: ''TargetResponseTime <= 0.5'' for *300* seconds for the metric dimensions ''LoadBalancer = app/prod-wiki/0ec4b8b4601b350c'') | * Execute policy when: ''prod-wiki-low'' (breaches the alarm threshold: ''TargetResponseTime <= 0.5'' for ''300'' seconds for the metric dimensions ''LoadBalancer = app/prod-wiki/0ec4b8b4601b350c'') |
* Take the action: ''Remove 1 instances'' | * Take the action: ''Remove 1 instances'' |
* And then wait: ''180 seconds before allowing another scaling activity'' | * And then wait: ''180 seconds before allowing another scaling activity'' |
| |
==== Launch Configuration ==== | ==== Launch Configuration ==== |
* AMI: ''ami-80861296'' | * AMI: //AMI created by [[https://github.com/opennic/packers/tree/master/opennic-wiki|opennic-wiki packer]]// |
* Instance type: ''t2.nano'' (t2.nano (Variable ECUs, 1 vCPUs, 2.4 GHz, Intel Xeon Family, 0.5 GiB memory, EBS only)) | * Instance type: ''t2.nano'' (t2.nano (Variable ECUs, 1 vCPUs, 2.4 GHz, Intel Xeon Family, 0.5 GiB memory, EBS only)) |
* Name: ''prod-wiki-20170506-4'' | * Name: ''prod-wiki-20170506-4'' |
* Kernel ID: ''Use default'' | * Kernel ID: ''Use default'' |
* RAM Disk ID: ''Use default'' | * RAM Disk ID: ''Use default'' |
* User data (As text): {{:opennic:infra:prod-wiki-asg-user-data.txt|}} | * User data (As text): - |
* IP Address Type: ''Assign a public IP address to every instance.'' | * IP Address Type: ''Assign a public IP address to every instance.'' |
* Storage | * Storage |
* Is: ''<='' ''500'' | * Is: ''<='' ''500'' |
* For at least: ''1'' consecutive period(s) of ''5 Minutes'' | * For at least: ''1'' consecutive period(s) of ''5 Minutes'' |
| ===== git sync ===== |
| The entire web root directory is synced to [[https://github.com/opennic/wikipages|GitHub]] approximately every 30 minutes using [[https://github.com/opennic/wikipages/blob/master/sync.sh|this]] simple bash script. Some files are [[https://github.com/opennic/wikipages/blob/master/.gitignore|not synced]] to the repository, for example the ''conf/users.auth.php'' file containing all users with their email addresses and passwords until LDAP authentication is up and running. |