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-07-30T08:04:12Z] – fusl |
---|
=== 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'' |
* 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. |