vday 2015 - golang as the dream of a devops engineer
TRANSCRIPT
![Page 1: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/1.jpg)
GOLANG AS THE DREAM OF A
DEVOPS ENGINEER
![Page 2: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/2.jpg)
MÁTÉ GULYÁSCTO
@gulyasm
![Page 3: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/3.jpg)
ENBRITELYLOVES
SERVICES
![Page 4: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/4.jpg)
ENBRITELYLOVES
MICROSERVICES
![Page 5: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/5.jpg)
MICROSERVICESLOVES
GO
![Page 6: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/6.jpg)
ENBRITELYLOVES
GO
![Page 7: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/7.jpg)
![Page 8: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/8.jpg)
GO IS GREAT FOR
DEPLOYMENT
![Page 9: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/9.jpg)
AMI
PACKER
GITHUB
ANSIBLE
TERRAFORM
CONSUL
AMI-ID
![Page 10: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/10.jpg)
STICK WITH THE STANDARD LIBRARY
![Page 11: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/11.jpg)
MIDDLEWARE?I WANT MY MIDDLEWARES!
![Page 12: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/12.jpg)
LOGGING
![Page 13: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/13.jpg)
LOG ONLY WHAT’S IMPORTANT
ERROR MESSAGE DETAILS!
SET LOG PREFIX
![Page 14: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/14.jpg)
GO TOOLS
![Page 15: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/15.jpg)
![Page 16: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/16.jpg)
GO TOOLS go fmtgo vetgo testgo getgolint
![Page 17: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/17.jpg)
1. is my service RUNNING?
2. what VERSION is running?
3. what is the UPTIME?
A FEW QUESTION...
![Page 18: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/18.jpg)
go RunHeartbeatService(":10101")
https://github.com/enbritely/heartbeat-golang
![Page 19: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/19.jpg)
ALWAYS WRITE A UI
![Page 20: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/20.jpg)
ALWAYS CREATE A UI
YOUR TEAM WILL THANK YOU!
![Page 21: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/21.jpg)
CONFIGURATION
![Page 22: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/22.jpg)
![Page 23: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/23.jpg)
![Page 24: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/24.jpg)
.dotenv file
export DB_USER=rootexport DB_PASSWORD=rootexport DB_HOST=localhost:3306export DB_DATABASE=TestDBexport ADDRESS=:12500export CS_ADDRESS=http://localhost:12300/apiexport HEARTBEAT_ADDRESS=:12501
![Page 25: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/25.jpg)
SUMMARY
Uniform build, deployment
Uniform Heartbeat signal
Always provide UI
Use env variables for configuration
Use the tools
![Page 26: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/26.jpg)
=
![Page 27: VDay 2015 - Golang as the Dream of a Devops Engineer](https://reader036.vdocuments.mx/reader036/viewer/2022062503/5876f1641a28abf3398b48ef/html5/thumbnails/27.jpg)
WE ARE HIRING!