Restarting the ieeg.org AWS Server¶
What this page tells you
When ieeg.org is degraded, log into AWS (account upenn-ieeg, us-east-1), open Elastic Beanstalk environment Ieegview-env-cpu-upgrade, and use Actions > Restart app server(s) only. Also explains subscribing to SNS health alerts and editing the alarm.
Restarting the ieeg.org environment¶
- Go to aws.amazon.com and click "Sign in to the Console"
-
Login with the following credentials, then click "Sign in"
- Account ID / alias: upenn-ieeg
- IAM username
- Password

-
In the upper right hand corner, make sure that the "United States (N. Virginia) us-east-1" region is selected.
-
Search for and navigate to "Elastic Beanstalk"

-
You will see the
Ieegview-env-cpu-upgradeenvironment and its current Health. Click on the environment name

-
If the environment Health is Degraded and you would like to restart the server, click the dropdown "Actions" button, then click "Restart app server(s)"
- WARNING: DO NOT CLICK ANY OF THE OTHER OPTIONS IN THE DROPDOWN OR YOU MIGHT ACCIDENTALLY TAKE DOWN THE ENTIRE PLATFORM

- WARNING: DO NOT CLICK ANY OF THE OTHER OPTIONS IN THE DROPDOWN OR YOU MIGHT ACCIDENTALLY TAKE DOWN THE ENTIRE PLATFORM
-
Once you click "Restart app server(s)", the page will refresh and you will see that the server is restarting. Feel free to close the tab. It should take a few minutes before the server is back up and running and the Health is restored to OK.
- In a few minutes, logon to ieeg.org to verify that the server is up and running again.
Optional: Subscribe to AWS automated alerts¶
You are able to have AWS automated alerts sent to your email whenever Elastic Beanstalk notices that the ieeg.org server Health is degraded.
- Logon to https://console.aws.amazon.com/sns/home
-
Click Amazon SNS, click Topics, then click the Topic name "ElasticBeanstalkNotifications-ieegview-e-4dq3mbq7dw-EnvironmentHealth-Average"

-
Click the "Subscriptions" tab, then click the "Create Subscription" button

-
Fill out the form with the following details:
- Topic ARN: "arn:aws:sns:us-east-1:078887448127:ElasticBeanstalkNotifications-ieegview-e-4dq3mbq7dw-EnvironmentHealth-Average" (don't change)
- Protocol: Email
- Endpoint: insert your email address
- Click "Create subscription" at the bottom. You will then receive a confirmation email from Amazon SNS, which you will need to confirm first before you can start receiving notifications.
If you would like to edit the settings for the Ieeg Env Health Alarm:¶
-
In Elastic Beanstalk, in Environments, in the
Ieegview-env-cpu-upgradeenvironment menu, click the "Alarms" tab

-
Click the checkbox for the "IeegEnvHealth" Alarm, then click the blue "Edit" button
- You are free to adjust the following parameters as needed. Do not change anything else.
- Period
- Change state after

Instructions on how I created this Alarm, if you would like to create your own Alarm:¶
- In Elastic Beanstalk, in Environments, in the
Ieegview-env-cpu-upgradeenvironment menu, click the "Alarms" tab - Click the "Create a new alarm" button
- Fill out the form with the following details:
- Resource:
Ieegview-env-cpu-upgrade(don't change) - Metric: EnvironmentHealth (don't change)
- Dimensions: no dimensions (don't change)
- Statistic: Average
- Name: insert whatever name you want
- Description - optional: leave blank
- Period: 1 minute
- Change state after: 1 minute
- Threshold: > 20
- Notify: Create a new SNS topic
- Topic name: insert whatever name you want
- Email: insert your email address
- Notify when state changes to: Alarm
- Resource: