Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Building Continuous Delivery - DevOps Way
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Andrey Rebrov
October 12, 2013
Programming
400
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building Continuous Delivery - DevOps Way
Andrey Rebrov
October 12, 2013
More Decks by Andrey Rebrov
See All by Andrey Rebrov
Роадмап в тысячу ли начинается с первого брифа
andrebrov
1
79
Agile в распределенной команде - история it-стартапа продающего духи онлайн
andrebrov
1
240
Тестирование в Agile для больших команд: путь трансформации
andrebrov
1
230
DevOps от и до - что, зачем и как
andrebrov
0
170
Тестирование в Agile: Q&A
andrebrov
0
790
Карго-культ инструментов в DevOps
andrebrov
0
390
Грабли автоматизации тестирования мобильного веба с помощью Selenium 2
andrebrov
0
170
Как инженерные практики помогают экономить бизнесу
andrebrov
2
240
Не превращайте ваши логи в клинопись
andrebrov
1
270
Other Decks in Programming
See All in Programming
AIに既存システムを理解させる技術 ~レガシーを見捨てないハーネスエンジニアリング入門~
ochtum
0
160
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
230
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
660
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
180
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
250
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
280
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
240
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
380
AWS Transform Customによる Spring Boot 2.xから4.xへのVerUp
satoshi256kbyte
2
110
VibeCodingからAgenticWorkflowへ
starfish719
0
930
Go 1.27 における memory allocation の高速化
andpad
0
340
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
370
Featured
See All Featured
How to make the Groovebox
asonas
2
2.4k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
Crafting Experiences
bethany
1
270
Are puppies a ranking factor?
jonoalderson
2
3.8k
A Modern Web Designer's Workflow
chriscoyier
698
190k
RailsConf 2023
tenderlove
30
1.5k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
220
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
450
WENDY [Excerpt]
tessaabrams
11
39k
Transcript
Building deployment pipeline: DevOps way Андрей Ребров Инженерный тренер ScrumTrek
None
Continuous Deployment - Ожидание
Continuous Deployment - Реальность
Инструменты разработки != инструменты админов
Недоверие Ops к Dev
«Прохладные истории» сломанных стендов
Решение • Обеспечить прозрачность процесса • Обеспечить качество поставок •
Свести dev и ops в одном месте
Delivery Pipeline – наш выбор
Это тоже delivery pipeline
None
Culture Automation Measurement Sharing
Culture
Automation • CI Server • Code Analysis • Auto Tests
• Configuration Management
CI Server • Рассмотрим на примере Jenkins
Что нужно 1. Ставим pipeline plugin 2. Делаем dependency между
задачами 3. Создаем новый pipeline view 4. …. 5. Profit!
Альтернативы
Configuration Management • VM control • OS control • Installation
control • …
Как неправильно
Например
Vagrant Vagrant::Config.run do |config| config.vm.box = "precise32" config.vm.box_url = http://files.vagrantup.com/precise32.box
config.vm.network :hostonly, "192.168.33.10” config.vm.share_folder("v-web", "/vagrant/www", "./www", :nfs => true) config.vm.share_folder("v-db", "/vagrant/db", "./db", :nfs => true) config.vm.forward_port 80, 8080 config.vm.provision :shell, :inline => "apt-get update --fix- missing” end
Docker from ubuntu:12.10 run apt-get update run DEBIAN_FRONTEND=noninteractive apt-get install
-q -y python run DEBIAN_FRONTEND=noninteractive apt-get install -q -y python-pip run pip install django run DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl run curl -L https://github.com/shykes/helloflask/archive/ master.tar.gz | tar -xzv run cd helloflask-master && pip install -r requirements.txt
Нужно больше инструментов!
Еще больше!
None
Что важно • Useful reports • Useful logging • Vizualisation
– Dashboards – Graphs – …
Работаем с логами
Node Node Logstash Elas.cSearch Kibana
Как можно все это собрать
Запуск Lumberjack /opt/lumberjack/bin/lumberjack -- host your.logstash.host -- port port-for- these-logs
--ssl-ca-path /etc/ssl/ logstash.pub Для генерации ключей на logstash сервере: openssl req -x509 -newkey rsa:2048 -keyout /etc/ ssl/ logstash.key -out /etc/ssl/logstash.pub - nodes -days 365
Конфигурируем Logstash #1 input { lumberjack { type => "apache-access"
port => 3338 ssl_certificate => "/etc/ssl/logstash.pub" ssl_key => "/etc/ssl/logstash.key" } }
Конфигурируем Logstash #2 filter { date { type => "apache-access"
timestamp => "dd/MMM/yyyy:HH:mm:ss Z" } }
Конфигурируем Logstash #3 output { elasticsearch { embedded => false
cluster => logs host => "172.28.2.2" index => "apache-%{+YYYY.MM}" type => "apache-access" } }
Запуск Logstash /usr/bin/java -jar /opt/logstash/logstash.jar agent -f <path-to- your.conf> -l
<path-to-where-you-want-the.log>
Конфигурируем Elasticsearch cluster.name: logs index.number_of_replicas: 0 path.data: /elasticsearch/data path.work: /elasticsearch/work
path.logs: /elasticsearch/logs bootstrap.mlockall: true discovery.zen.ping.multicast.enabled: false
Запускаем Elasticsearch ./bin/elasticsearch –f или в фоне ./bin/elasticsearch
Запускаем Kibana ruby kibana.rb
Визуализация
Что есть на рынке
Graphite output { graphite { host => "10.10.10.10" port =>
2003 type => "system-netstats" metrics => [ hosts.%{@source_host}.netstats.interfaces.%{iface}.rxpck_s, "%{rxpck_s}”] } }
Что на выходе
Twitter @andrebrov E-mail
[email protected]
Skype rebrov.andrey Вопросы?