This repository is deprecated and no longer used.
- SSH to one of the hosts
- wget https://raw.githubusercontent.com/mozilla/webprod-deis/master/newrelic/newrelic-sysmond.service
- Edit
newrelic-sysmond.service
and replaceYOUR_NEW_RELIC_KEY
with our NewRelic Key. - Load the unit file with
fleetctl load newrelic-sysmond.service
- Start the unit file
fleetctl start newrelic-sysmond.service
. This service is Global and thus it will run and monitor all the servers of the cluster. - Go to NewRelic Servers and make sure that the servers have the 'Project:Webprod' tag
- Update 'WebProd Deis Servers' NewRelic alert policy with the new servers.
Follow the deis-backup-service instructions.
Deis AWS cluster provision script creates an AWS CloudFormation. In its turn CloudFormation creates the required Launch Configuration, Auto Scaling Group, ELB, Security Groups and of course EC2 instances.
The provision script creates two security groups,the 'Deis Web ELB Security Group' and the 'Enable public SSH and intra-VPC communication'. It's possible that the later group is used by RDS instances, to open a network flow between Deis and RDS for application use. If other AWS components are in use then that maybe the case for those components as well.
To terminate the cluster, first decouple any security groups that belong to the cluster from other AWS components, like RDS. Then visit CloudFormation Console and delete the formation. All components created by this formation will be deleted. Failing to decouple the groups from other components, will prevent the deletion of the formation.
It is important to delete the whole formation and not just the EC2 instances. Deleting only the EC2 instances, will cause the Auto Scaling Group to trigger the creation of new EC2 instances.