the use of aws in the countryside
TRANSCRIPT
The use of AWS in the countryside
heptagon inc. Takuya tachibana
profileTakuyaTachibana(31)LiveinMisawa/AomoriLeaderofJAWS-UGin2016
Heptagoninc.CEOacebook.com/biatunkyFavoriteAWSService AWSLambda
Aomori
2.5H
Aomori
Aomori
Good place but very countryside…
So we have Small and medium-sized enterprises
as customer.
What is countryside projects
• Less Less Traffic…
• Small Small budget…
• Do not stop the server always !!
• Need backup!!!
• Need security!!!!
Why do we choose AWS at countryside projects?
• Stability of infrastructure
• Safe security
• Dependable support
• Scalable infrastructure
• Use a variety of functions in options(Backup, Redundancy,Security…)
Our ingenuity
1、We use actively t2.family in production.
2、We use Lambda for Pay-per-use of CPU.
Amazon EC2
t2AWS
Lambda Amazon
EC2
Amazon EC2
t2t2 family
1、We use actively t2.family in production.
Feature of t2.family
CheapCost-effectiveness is excellent .
Fast(but…)During you have CPU credits it operates at a
high speed .
If you use all of CPU credits, very very slow…
How much can withstand the access ?
I created environment 100 domains in t2micro instance.
AmazonLinux/apache/postfix/dovecot/mysql (Optimized parameters)
WEB Wordpress:50 domains staticsite:50 domains installed Simple content.
Mail 1account / domains
100 account(domains) in total
Conditions of stress test
Service � Per 1domain� Entire server � Per 1hour �WEB� 100PV/day � 10000PV/day � 1PV/6sec�Send emails� 10/day � 1000/day � 1message/1mim�Receive emails� 100/day � 10000/day � 1mesage/6sec�Pop3 access� 1access/5mim � 100access/5min � 1access/3sec �
Verification is successful unless reduce CPU credit.
h"p �smtp �
smtp-auth �
pop3�
Stress test �
c3.large � t2.micro�
Result
Stress Test
CPU Credit
and more
In peacetime you earn credits . So It is possible to burst.
You must do monitoring CPU Credits!!
It is recommended stress test before use .
If the credit is not enough, you should change instance size or family.
AWS Lambda
2、We use Lambda for Pay-per-use of CPU.
Use case 1:Statistical processing with Lambda
1、Upload master data
2、Statistical processing on Lambda
3、Generate the results file to S3.
4、Notify to user with SNS
5、Download the results file
• Easy operation thanks to full-managed service
• Provide a complete pay-per-use
• Auto scale out if data increase
Use case 1:Statistical processing with Lambda
Use case 2:Input Cloudwatch metrics to zabbix
CPU load average Switch to lambda
Use case 2:Input Cloudwatch metrics to zabbix
• CPU Offload with Lambda (at little cost.)
• Auto scall out if monitored instance increase
Use case 2:Input Cloudwatch metrics to zabbix
I want to get maintenance information! (not emails)
Use case 3 : Notify maintenance information to Slack by Lambda
It is hard to manage several AWS account.
Use case 3 : Notify maintenance information to Slack by Lambda
Conclusion
• There is an appropriate AWS usage in countryside.
• T2.family and Lambda which you can use the resources at low cost is a strong ally in countryside !
• Please give gently to the countryside of people .
감사합니다