SlideShare a Scribd company logo
Применение технологий
DevOps для создания
отказоустойчивого сайта
Implementing DevOps methodology for creating
fault-tolerant web-store
DevOps как принцип построения
процесса
совместной разработки
https://bit.ly/1srqX0u
What is DevOps? - In Simple English
Отцы основатели
The (Short) History of DevOps
https://bit.ly/2Nqoik3
10+ Deploys
Per Day: Dev
and Ops
Cooperation at
Flickr
Key process and
technologies of DevOps
https://bit.ly/2uudXw3
Successful companies
https://bit.ly/2uHUOX4
https://bit.ly/2uHUOX4
DevOps, how do I implement in a large enterprise?
Other side of the coin
https://bit.ly/2NTFoHQ
The state of application delivery
Infrastructure before relocation,
first pitfalls
Terraform structure short description
структура папок общего плана
https://www.terraform.io/docs/index.html
Terraform providers
https://www.terraform.io/docs/providers/
Project creation stages
1. Create VM infrastructure and network balancing (only this
stage will be shown);
2. Create Jenkins pipeline;
3. Create DB servers and setup Galera replication.
All demo scripts could be downloaded from
https://github.com/fredtz/deveopsprsnt
Stage 1. Creation VM
infrastructure (TF Demo)
- Create VM
- Assign tags and IPv6
- create balancer
Useful commands:
-Terraform init
- terraform plan
-Terraform apply
-Terraform show
-Terraform destroy
Automating the Cloud with
Terraform, and Ansible
By Brian Hogan
https://bit.ly/2JvAehZ
Ansible structure short
description
структура исполняемого скриптинга Ansible
Ansible Automation : Ansible Installation and Configuration
https://bit.ly/2zNxFbs
Stage 1-2. Installation of
software with Ansible
Command for demo:
ansible --version
ansible-inventory --list
sudo ansible-playbook ./playbook.yml -i /Users/1/ansible-demo/hosts --private-key /Users/1/terraform-demo/.ssh/id_rsa
ansible-inventory -i hosts —graph
Configuration Management With Ansible: A Whirlwind Tour
https://bit.ly/2NXiu2g
Stage 2. Jenkins pipeline.
Pipeline description
PHP
Jenkinsfile (Declarative Pipeline)
pipeline { agent { docker { image 'php' } }
stages
{ stage('build')
{ steps
{ sh 'php --version' }
} } }
Creating your first Pipeline
https://bit.ly/2L6oRmp
Stage 3. Master-master DB
replication with Galera Cluster
Replication schema recommended by Amazon AWS
Листинг galera.conf
[mysqld]
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0
# Galera Provider Configuration
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
# Galera Cluster Configuration
wsrep_cluster_name=galera_cluster
wsrep_cluster_address=gcomm://PUBLIC-IP1,PUBLIC-IP2
# Galera Synchronization Configuration
wsrep_sst_method=rsync
# Galera Node Configuration
wsrep_node_address=PUBLIC-IP1
wsrep_node_name=DB-hostname
Galera Cluster for MySQL - Tutorial
https://bit.ly/2Jw9E8h
Current network topology
Current logical topology
Backup and monitoring
Monitoring Quickstart
https://do.co/2L5ETgf
Test & perfomance
What’s next?
Solution cost (per month)
Service type Cost per month, USD
DigitalOcean VM rent 50
TotalUptime balancing service 29
Hetzner DNS/mail services 5
-----------------------------------------------------------------
TOTAL 84
Вопросы?
В оформлении презентации использовались работы фотографа под
ником Lyokin (https://www.instagram.com/lyokin_com/) в частности виды
Мингачевирского водохранилища, окрестности села Ивановка
Исмаиллинского района и Красные горы в Хызы (Азербайджан)
Чтобы спросить еще раз :) меня можно найти на
LINKEDIN: https://www.linkedin.com/in/fbadalov/
Github: https://github.com/fredtz/
e-mail: farkhad.badalov@gmail.com
страничка DevOps Baku on Facebook: https://bit.ly/2mhgzJd
Как стать DevOps инженером за 6 месяцев - ->
https://bit.ly/2LlGhXS
Type to enter a
caption.

More Related Content

Devopstore

  • 1. Применение технологий DevOps для создания отказоустойчивого сайта Implementing DevOps methodology for creating fault-tolerant web-store
  • 2. DevOps как принцип построения процесса совместной разработки https://bit.ly/1srqX0u What is DevOps? - In Simple English
  • 3. Отцы основатели The (Short) History of DevOps https://bit.ly/2Nqoik3 10+ Deploys Per Day: Dev and Ops Cooperation at Flickr
  • 4. Key process and technologies of DevOps https://bit.ly/2uudXw3
  • 6. Other side of the coin https://bit.ly/2NTFoHQ The state of application delivery
  • 8. Terraform structure short description структура папок общего плана https://www.terraform.io/docs/index.html
  • 10. Project creation stages 1. Create VM infrastructure and network balancing (only this stage will be shown); 2. Create Jenkins pipeline; 3. Create DB servers and setup Galera replication. All demo scripts could be downloaded from https://github.com/fredtz/deveopsprsnt
  • 11. Stage 1. Creation VM infrastructure (TF Demo) - Create VM - Assign tags and IPv6 - create balancer Useful commands: -Terraform init - terraform plan -Terraform apply -Terraform show -Terraform destroy Automating the Cloud with Terraform, and Ansible By Brian Hogan https://bit.ly/2JvAehZ
  • 12. Ansible structure short description структура исполняемого скриптинга Ansible Ansible Automation : Ansible Installation and Configuration https://bit.ly/2zNxFbs
  • 13. Stage 1-2. Installation of software with Ansible Command for demo: ansible --version ansible-inventory --list sudo ansible-playbook ./playbook.yml -i /Users/1/ansible-demo/hosts --private-key /Users/1/terraform-demo/.ssh/id_rsa ansible-inventory -i hosts —graph Configuration Management With Ansible: A Whirlwind Tour https://bit.ly/2NXiu2g
  • 14. Stage 2. Jenkins pipeline.
  • 15. Pipeline description PHP Jenkinsfile (Declarative Pipeline) pipeline { agent { docker { image 'php' } } stages { stage('build') { steps { sh 'php --version' } } } } Creating your first Pipeline https://bit.ly/2L6oRmp
  • 16. Stage 3. Master-master DB replication with Galera Cluster Replication schema recommended by Amazon AWS Листинг galera.conf [mysqld] binlog_format=ROW default-storage-engine=innodb innodb_autoinc_lock_mode=2 bind-address=0.0.0.0 # Galera Provider Configuration wsrep_on=ON wsrep_provider=/usr/lib/galera/libgalera_smm.so # Galera Cluster Configuration wsrep_cluster_name=galera_cluster wsrep_cluster_address=gcomm://PUBLIC-IP1,PUBLIC-IP2 # Galera Synchronization Configuration wsrep_sst_method=rsync # Galera Node Configuration wsrep_node_address=PUBLIC-IP1 wsrep_node_name=DB-hostname Galera Cluster for MySQL - Tutorial https://bit.ly/2Jw9E8h
  • 19. Backup and monitoring Monitoring Quickstart https://do.co/2L5ETgf
  • 22. Solution cost (per month) Service type Cost per month, USD DigitalOcean VM rent 50 TotalUptime balancing service 29 Hetzner DNS/mail services 5 ----------------------------------------------------------------- TOTAL 84
  • 23. Вопросы? В оформлении презентации использовались работы фотографа под ником Lyokin (https://www.instagram.com/lyokin_com/) в частности виды Мингачевирского водохранилища, окрестности села Ивановка Исмаиллинского района и Красные горы в Хызы (Азербайджан) Чтобы спросить еще раз :) меня можно найти на LINKEDIN: https://www.linkedin.com/in/fbadalov/ Github: https://github.com/fredtz/ e-mail: farkhad.badalov@gmail.com страничка DevOps Baku on Facebook: https://bit.ly/2mhgzJd Как стать DevOps инженером за 6 месяцев - -> https://bit.ly/2LlGhXS Type to enter a caption.