Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[2020.10 Meetup][TALK] Andrey Budzar - How Linedata Streamlined CI/CD and Optimized Cloud Spend

[2020.10 Meetup][TALK] Andrey Budzar - How Linedata Streamlined CI/CD and Optimized Cloud Spend

In this talk, Andrey Budzar, DevOps and Cloud Transformation Lead at Linedate shared in first-hand his experiences around:
- Migrating to microservice and Serverless architectures running in the public cloud while integrating with existing software
- Implementing fully automated and dynamic CI/CD pipelines
- Empowering Engineering and Business teams with self-service deployments
- Streaming cloud spend with a dynamic environment and infrastructure provisioning
- Reducing and eliminating cloud waste via automation

B4086361d83c89424ab054791077b36c?s=128

DevOps Lisbon

October 12, 2020
Tweet

More Decks by DevOps Lisbon

Other Decks in Technology

Transcript

  1. HOW LINEDATA STREAMLINED CI/CD AND OPTIMIZED AWS CLOUD SPEND Andrey

    Budzar DevOps Lisbon 10/2020
  2. DEVOPS LISBON CONTENTS • 01 – About Linedata • 02

    – DevOps at Linedata • 04 – Continuous Infrastructure as Code: Harness + Terraform • 05 – GitOps • 06 – Summary • 07 – GitOps Demo
  3. DEVOPS LISBON 01 ABOUT LINEDATA

  4. WHAT WE DO : ENABLE YOUR FIRM’S EVOLUTION Alternative Managers

    Institutional Managers Wealth Managers Management Companies Private Equity Administrators TPA/Fund Administrators Asset Owners Portfolio Management Order Management & Trading Middle Office Oversight NAV Solution Compliance Risk Management Fund Accounting & Valuation ReportingTransfer Agency Operational Analytics Outsourcing We build with powerful new technologies and deliver cloud-based, integrated software, data and services to help you adapt and scale your business, embrace digitization and position for the future. We help our clients around the world evolve and operate at the highest levels. 10 of the world’s 30 largest asset management companies trust our investment solutions. Whatever your business Whatever your needs We create smart solutions Linedata’s technology solutions combine software, services, data and 20 years of experience, to position our global clients to innovate, streamline and optimize investment performance and operations for growth and success. SOFTWARE, SERVICES, DATA & ANALYTICS FOR ASSET MANAGERS DEVOPS LISBON
  5. Seattle New York Boston Toronto Tunis Madrid Paris Dubli n

    London Luxembour g Edinburgh Riga Chennai Hong Kong Casablanc a Greenwic h Ahmedabad Mumbai Oxford Chicago GLOBAL DEVOPS AT LINEDATA EMPOWERING YOUR BUSINESS WITH TECHNOLOGY, SERVICES AND DATA SOLUTIONS DEVOPS LISBON 1,300+ people 700 clients 20 offices 200m revenue US$12.5T managed by AM clients
  6. DEVOPS LISBON 02 DEVOPS AT LINEDATA

  7. TYPE 5 DEVOPS TOPOLOGY + SCRIPTING Dev Ops DevOps What

    organizations try to implement Type 5: DevOps Team with an expiry date Dev Ops DevOps What usually happens Added operational overhead Anti-Type B: Permanent DevOps Team Silo Dev Ops DevOps DEVOPS LISBON
  8. DEVOPS METHODOLOGY AT LINEDATA Smart Automation (Continuous Deployment) Secure Infrastructure-as-Code

    Cost Management-as-Code Self Service Continuous Verification Continuous Security DEVOPS LISBON
  9. LINEDATA DEVOPS TOPOLOGY – SRE MODEL Group Level Platform Engineering

    DEVOPS LISBON Secure Infrastructure-as-Code Business Unit SRE DevOps Dev Self Service
  10. DEVOPS LISBON 03 CONTINUOUS INFRASTRUCTURE-AS-CODE

  11. AUTOMATION MATURITY DEVOPS LISBON LEVEL 0 Ad hoc • Minimal

    automation • Individually driven • Script based • Some tools adopted LEVEL 1 Opportunistic • Targeted Automation • Team or project driven • Reactive in nature • Platform and tools evaluated and adopted LEVEL 2 Systematic • Automation defined with metrics • Expert driven • Proactive in nature • Roadmap specified LEVEL 3 Institutionalized • Roadmap in action across the organization • Organization driven • Roadmap specified • Automation becomes way of life LEVEL 4 Adaptive • Automation becomes adaptive to process being automated • Self-learning, self-healing, with optimization methods in place • Widespread use of machine learning and AI • Automation inherently becomes smart Up to 5% 5%-10% 10%-25% 25%-50% >50% Productivity Gains ADOPTION • Automation realized with portfolio of platforms and tools
  12. DEVOPS LISBON DEPLOYMENT SCRIPTING != CONTINUOUS DELIVERY Environments are static

    and run 24/7 10-20 scripts per pipeline Secrets stored in config files Terraform manually triggered by Developers Jenkins manually triggered by Developers and takes hours to go from Dev to Production.
  13. DEVOPS LISBON CONTINUOUS INFRASTRUCTURE AS CODE • Layered Modules (outputs.tf)

    • Dynamic • Re-usable • Embedded Security • Auditable • Streamlined Tagging • Automated Approvals • Change Control
  14. DEVOPS LISBON CD WITH HARNESS + TERRAFORM On-Demand Environments reduce

    cloud costs Terraform auto-provisions envs/infra on pipeline execution and auto-destroys on pipeline completion Harness pipeline auto-triggered on new build/artifact and takes mins to go from Dev to Production Single Harness pipeline template Pull request Developers create and templatize pipelines in minutes
  15. DEVOPS LISBON 05 GITOPS

  16. DEVOPS LISBON DEFINITION Describes the desired state of the whole

    system using a declarative specification for each environment A git repo is the single source of truth for the desired state of the whole system All changes to the desired state are approved Git commits When the desired and observed states are not the same then: There is a convergence mechanism to bring the desired and observed states in sync both eventually, and automatically This is triggered immediately or manually with an approved “change committed” After a configurable interval, an alert “diff” may also be sent if the states are divergent All Git commits cause verifiable and idempotent updates to the infrastructure Rollback is: “convergence to an earlier desired state” (Revert commit) https://www.weave.works/technologies/gitops/
  17. DEVOPS LISBON GITOPS OPERATING MODEL Git as the single source

    of truth of a system’s desired state GitOps Diffs compare desired state with observed state (Terraform Plan) ALL intended operations are committed by pull requests, for all environments ALL diffs between GIT and observed state lead to convergence (Terraform Apply) ALL changes are observable, verifiable, audited indisputably, with rollback https://www.weave.works/technologies/gitops/
  18. DEVOPS LISBON 06 SUMMARY

  19. SELF SERVICE QA SRE Developer Sales/Product Feedback ~60 min on

    average Feedback DEVOPS LISBON Feedback Platform Pull request
  20. IMPACT OF HARNESS + TERRAFORM POWERED DEVOPS AT LINEDATA Economic

    Benefits ~50% Savings on Entire AWS bill Granular visibility into Cloud spend Agility = Velocity of Revenue Efficiency = Increased DevOps ROI Cultural Benefits Improved Quality of Life across the business Value-driven DevOps instead of day-to-day task automation Template Library decreases handoff friction and empowers innovation Scalability through a frictionless automation framework DevOps enabled self-service supporting global collaboration and innovation DEVOPS LISBON
  21. DEVOPS LISBON BENEFITS AND CHALLENGES OF GITOPS BENEFITS Self-Service IT

    Transparency (inherently documented) Collaboration between Dev and Ops (learning opportunities) Scalability Security Increased ROI CHALLENGES Design and implementation Steep Learning curve Discipline
  22. DEVOPS LISBON DEMO

  23. DEVOPS LISBON GITPS + IAC ECOSYSTEM Git Orgs Pull Requests

    Orchestrator Delegates Infrastructure-as-code Modules … … AWS … …
  24. DEVOPS LISBON AWS INFRA GITOPS (HARNESS + TF) VPC, IAM,

    KMS, SECRETS, SSM, ETC 1a. Pull Request devops-<eng/prod> Harness Role Assume role Assume role Assume role Harness Role Harness Role Harness Role Amazon EC2 2a. Approve PR 2b. Pull Request if request for change 2c. Approve from 2b Plan Apply 4. Approval ss h 3. Execute Change (RBAC + Delegate Scoping) 1b. KEN ticket for PR or request for change AWS CloudTrail AWS Organizations CPT != terraform
  25. DEVOPS LISBON GIT PATTERNS MAKING CHANGES All orgs, repos auto-protect

    «live» branches (Harness execute limited to protected branches) Changes via PRs 1. Create a patch branch 2. Raise PR 3. Auto-plan (deltas) 4. Wait for PR approval & merge 5. Auto-apply with pending approval 6. No self-approvals, enforce admins RBAC controlled Full change audit trail (commits & PRs) Bi-directional link between Harness execution and PR
  26. DEVOPS LISBON Q&A