the use of aws in the countryside

27
The use of AWS in the countryside heptagon inc. Takuya tachibana

Upload: takuya-tachibana

Post on 09-Jan-2017

1.437 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: The use of aws in the countryside

The use of AWS in the countryside

heptagon inc. Takuya tachibana

Page 2: The use of aws in the countryside

profileTakuyaTachibana(31)LiveinMisawa/AomoriLeaderofJAWS-UGin2016

Heptagoninc.CEOacebook.com/biatunkyFavoriteAWSService AWSLambda

Page 3: The use of aws in the countryside

Aomori

2.5H

Page 4: The use of aws in the countryside

Aomori

Page 5: The use of aws in the countryside

Aomori

Page 6: The use of aws in the countryside
Page 7: The use of aws in the countryside

Good place but very countryside…

Page 8: The use of aws in the countryside

So we have Small and medium-sized enterprises

as customer.

Page 9: The use of aws in the countryside

What is countryside projects

• Less Less Traffic…

• Small Small budget…

• Do not stop the server always !!

• Need backup!!!

• Need security!!!!

Page 10: The use of aws in the countryside

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…)

Page 11: The use of aws in the countryside

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

Page 12: The use of aws in the countryside

Amazon EC2

t2t2 family

1、We use actively t2.family in production.

Page 13: The use of aws in the countryside

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…

Page 14: The use of aws in the countryside

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

Page 15: The use of aws in the countryside

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�

Page 16: The use of aws in the countryside

Result

Stress Test

CPU Credit

Page 17: The use of aws in the countryside

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.

Page 18: The use of aws in the countryside

AWS Lambda

2、We use Lambda for Pay-per-use of CPU.

Page 19: The use of aws in the countryside

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

Page 20: The use of aws in the countryside

• 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

Page 21: The use of aws in the countryside

Use case 2:Input Cloudwatch metrics to zabbix

Page 22: The use of aws in the countryside

CPU load average Switch to lambda

Use case 2:Input Cloudwatch metrics to zabbix

Page 23: The use of aws in the countryside

• CPU Offload with Lambda  (at little cost.)

• Auto scall out if monitored instance increase

Use case 2:Input Cloudwatch metrics to zabbix

Page 24: The use of aws in the countryside

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.

Page 25: The use of aws in the countryside

Use case 3 : Notify maintenance information to Slack by Lambda

Page 26: The use of aws in the countryside

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 .

Page 27: The use of aws in the countryside

감사합니다