rapid cq deployments by jakub wadolowski
TRANSCRIPT
![Page 1: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/1.jpg)
Rapid CQ deployments at your fingertips
Jakub Wadolowski
![Page 2: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/2.jpg)
About me
• Systems Engineer @ Cognifide
• Open source and Linux enthusiast
• 3 years of experience with Adobe CQ
• Chef user for over a year
![Page 3: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/3.jpg)
Configuration management problem (1)
• root@server:~# ls /etc/apache2/apache2*
• /etc/apache2/apache2.conf
• /etc/apache2/apache2.conf.OLD
• /etc/apache2/apache2.conf.BAK
• /etc/apache2/apache2.conf.20131201
• /etc/apache2/apache2.conf.orig.20130123
• …
![Page 4: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/4.jpg)
Configuration management problem (2)
DEV STAGING PROD
![Page 5: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/5.jpg)
System integrity
![Page 6: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/6.jpg)
Solutions! (1)
• Manual configuration• Error-prone
• Time consuming
• Works until you have to deal with a several dozensof servers on a daily basis
![Page 7: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/7.jpg)
Solutions! (2)
• Golden images• Quite heavy
• Hard to transfer between various autonomoussystems
• Hard to modify seamlessly
• Hidden (and most probably undocumented) configuration details
![Page 8: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/8.jpg)
Solutions! (3)
• Configuration management• It’s all about the state of your servers/services
• Treat your infrastructure as code
• Define policy once, reuse everywhere
• Reduce complexity
• Reconstruct business from code repository, data backup and compute resources
![Page 9: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/9.jpg)
Let’s cook something!
![Page 10: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/10.jpg)
Chef core principles
• Idempotence
• Thick client, thin server
• Order matters
• Declarative
• Convergent
• Underlying technology agnostic
![Page 11: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/11.jpg)
Chef overview
• Chef server
• Chef client
• Workstation
• Node
• Cookbook• Recipes• Templates• Attributes• Resources• …
![Page 12: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/12.jpg)
CQ Unix Toolkit cookbook
• Installs specific version of CQ Unix Toolkit
• Provides underlying tools for CQ cookbook
![Page 13: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/13.jpg)
CQ cookbook
• CQ installation
• Internals management (users, packages, etc.)
![Page 14: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/14.jpg)
CQ deployments with Chef (1)
• Server provisioning• Users
• Sudo settings
• Common packages installation
• Ulimit
• SysVInit deamon
• Monitoring
• …
![Page 15: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/15.jpg)
CQ deployments with Chef (2)
• CQ installation• Install proper Java version
• Download and unpack JAR file
• Tune JVM settings
• …
![Page 16: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/16.jpg)
CQ deployments with Chef (3)
• CQ management• Create CQ users
• Configure replication agents
• Install CRX packages
• …
![Page 17: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/17.jpg)
The power of Chef – JVM (1)
![Page 18: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/18.jpg)
The power of Chef – JVM (2)
![Page 19: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/19.jpg)
The power of Chef – JVM (3)
![Page 20: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/20.jpg)
The power of Chef – CQ Users (1)
![Page 21: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/21.jpg)
Demo time!
![Page 22: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/22.jpg)
Why you should care?
• Never hear 'works on my machine' again
• Keep track of your CQ servers
• Ability to recreate your infrastructure from scratch anytime you need it
• Helps you scale horizontally
• Rapid package deployments
• Improved development workflow
![Page 23: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/23.jpg)
Current status
• Only CQ 5.6.x is supported
• Full CQ installation
• CQ JVM tuning
• Run CQ as Linux daemon
• User management
• CRX package management
![Page 24: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/24.jpg)
Roadmap
• CQ users improvements (groups support)
• New resources• cq_agent (replication & flush)
• cq_bundle (OSGi configuration)
• CQ 5.5 support
• More automated tests
• Public release within the next few weeks!
![Page 25: Rapid CQ deployments by Jakub Wadolowski](https://reader033.vdocuments.site/reader033/viewer/2022052410/55621d75d8b42ac6588b463f/html5/thumbnails/25.jpg)
THANK YOU!