The use of AWS in the countryside heptagon inc. Takuya tachibana
proﬁle Takuya Tachibana (31)
Live in Misawa/Aomori
Leader of JAWS-UG in 2016 Heptagon inc. CEO acebook.com/biatunky
Favorite AWS Service AWS Lambda
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 １、We use actively t2.family in production. ２、We use Lambda for Pay-per-use of CPU. t2 Amazon Amazon AWS EC2 EC2 Lambda
１、We use actively t2.family in production. t2 family t2 Amazon EC2
Feature of t2.family Cheap Cost-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 instal ed 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. Stress test h"p smtp smtp-auth pop3 c3.large t2.micro
Result CPU Credit Stress Test
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.
２、We use Lambda for Pay-per-use of CPU. AWS Lambda
Use case 1:Statistical processing with Lambda １、Upload master data ２、Statistical processing on Lambda ３、Generate the results file to S3. ４、Notify to user with SNS ５、Download the results file
Use case 1:Statistical processing with Lambda • Easy operation thanks to full-managed service • Provide a complete pay- per-use • Auto scale out if data increase
Use case 2:Input Cloudwatch metrics to zabbix
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 3 : Notify maintenance information to Slack by Lambda I want to get maintenance information! (not emails) 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 .