Cells
Intro
Cells is a new architecture for our software as a service platform. This architecture is horizontally scalable, resilient, and provides a more consistent user experience. It may also provide additional features in the future, such as data residency control (regions) and federated features.
For more information about the goals of Cells, see goals.
Requirements and Architecture
Cells overall architecture blueprint.
Roadmap, Stages, Phases, and DRIs
Roadmap
|
|
|
DRIs and Stakeholders
Stakeholder | Role | Responsibility |
---|---|---|
Sabrina Farmer | CTO | Executive Sponsor |
Gerardo Lopez-Fernandez | Engineering Fellow | Tenant Scale Engineering DRI |
Mark Wood | Acting Group Product Manager | Tenant Scale Product DRI |
Darby Frey | Staff Fullstack Engineer, Expansion | Sec and Monetization DRI |
Kerri Miller | Staff Backend Engineer, Create | Core Development DRI |
Cells 1.0
All Cells 1.0 work is tracked under the Cells 1.0 Epic. The Epic is split into multiple phases where each one represents a iteration to achieve Cells 1.0. Some of these phases have dependencies over one another, and some can be run in parallel.
Phase 1: PreQA Cell
Exit Criteria:
- New GCP organizations created.
- Break glass procedure.
- Ring definition exists.
- Cell provisioned using dedicated stack.
- Able to do configuration changes to Cell.
- Cell available at
xxx.cells.gitlab.com
. - Cell doesn’t handle data uniqueness.
Unblocks:
- Phase 3: To provision runway deployment for Topology Service
- Delivery team: Start testing deploys on rings
Dependencies:
- None
Details:
Phase 2: GitLab.com HTTPS Passthrough Proxy
Exit Criteria:
- 100% of API traffic goes through router using passthrough proxy rule.
- 100% of Web traffic goes through router using passthrough proxy rule.
- 100% of Git HTTPS traffic goes through router using passthrough proxy rule.
- Requests meet latency target
- registry.gitlab.com not proxied.
Unblocks:
- Phase 3: Router to be configured with additional rules in phase 3.
Dependencies:
- None
Details:
Phase 3: GitLab.com HTTPS Session Routing
Exit Criteria:
- PreQA Cell configured to generate
_gitlab_session
with prefix using rails config. - Route
_gitlab_session
with matching prefix to PreQA Cell using TopologyService::Classify (REST only) with static config file. - Continuous Delivery on Ring 0 with no rollback capabilities and doesn’t block production deployments.
- Topology Service Readiness Review for Experiment
- Topology Service gRPC endpoint not implemented.
Unblocks:
Before/After:
Dependencies:
- Phase 2: Passthrough proxy needs to be deployed.
- Phase 1: GCP organizations, Ring definition exists.
Details:
Phase 4: GitLab.com HTTPS Token Routing
Exit Criteria:
- Framework to generate routable tokens in Rails.
- Framework to classify routable tokens in HTTP Router.
- Topology Service being able to classify based on more criteria.
- Route Personal Access Tokens to different Cells using TopologyService::Classify.
- Support
PRIVATE-TOKEN:
andAuthorization:
HTTP headers for Personal Access Tokens, create issues for other to be solved in following phases. - Each routing rule added should be covered with relevant e2e tests.
- Route Job Tokens and Runner Registration to different Cells using TopologyService::Classify.
Dependencies:
- Phase 3: Topology Service and Router need to running in production.
Before/After:
Details:
Phase 5: Cluster Awareness
Exit Criteria:
- Topology Service Production Readiness Review for Beta.
- Framework to claim resources globally using TopologySerivce::Claims storing them in Google Spanner.
- Following resources are claimable; Username, E-Mail, Top level Group Name, Routes
- All resources that need to be claimed identified.
- Lease a sequence to a Cell using ToplogyService::Sequence.
- Rails application able to send requests to TopologyService using internal network.
- mTLS communication between TopologyService and HTTP Router.
- mTLS communication between TopologyService and Rails.
- mTLS communication between HTTP Router and Cell.
- PreQA Cell can start claiming resources, still detached from Legacy Cell.
- Claims done by PreQA Cell will be deleted.
Dependencies:
- Phase 3: Topology Service Deployed.
Before/After:
Details:
Phase 6: Monolith Cell
Exit Criteria:
- Topology Service Production Readiness GA.
- Legacy Cell configured as a Cell in TopologyService.
- All new resources in Legacy Cell are claimed using TopologyService::Claims.
- Legacy Cell claimed all existing resources.
- Sequence leased to Legacy Cell.
- Capacity Planning for sequences leased.
- Latency increase for creating globally unique resources up to 20ms.
Dependencies:
- Phase 5: Cluster Awareness
Before/After:
Details:
Phase 7: Cell Initialization
Exit Criteria:
- TBD
Before/After:
Details:
Phase 8: Organization Onboarding
Exit Criteria:
- TBD
Before/After:
Details:
Phase 10: Production Readiness
Exit Criteria:
- Cell-Level Observability (Logs, Metrics, Alerts, Dashboard).
- Integration with existing Incident Management tooling.
- Compliance with GitLab.com security standards.
- Regional and Zonal Disaster Recovery capabilities.
- Operational tooling independence from GitLab.com/dev.gitlab.org availability.
- Centralized WAF management for GitLab.com domain.
- Cell-level Application Rate Limits with synchronization.
- Least-privileged access implementation with SRE escalation path.
- Progressive rollout of infrastructure changes across Cells with rollback support.
- Progressive deployment capabilities across Legacy Cell and Cells with rollback support.
- Support for toggling Feature Flags across Legacy Cell and Cells.
Dependencies:
- Phase 1: GCP organizations, Ring definition exists.
Before/After:
Details:
Communication
Slack Channels
- #f_cells_and_organizations (internal only): Regular communication
- #cto (internal only): Weekly program status update
Meetings
- Cells Standup weekly Meeting notes (internal only)
Status updates
- Weekly status updates in Slack #cto channel (internal only) channel
- Details are also automatically rolled up details in the Cells 1.0 epic
Additional Information
Cells Fast Boot 2024
We held a Cells Fast Boot in Dublin, Ireland, between 2024-04-23 and 2024-04-24. Below are the artifacts from the event.
Agenda, Slides, and Videos
Please use the Unfiltered
Google account to watch video recordings.
- Main agenda (internal only)
- Introductions, overview, and logistics: Agenda (internal only)
- Cells Services - Global Service: Agenda (internal only), Slides (internal only), Video (internal only)
- Cells Services - Routing: Agenda (internal only), Slides (internal only), Video (internal only)
- Application Readiness - Organizations and Users: Agenda (internal only)
- Application Readiness - Dependencies and OKR alignments: Agenda (internal only)
- Deployment: Agenda (internal only), Slides (internal only), Video (internal only)
- Provisioning: Agenda (internal only)
- Observability and Runners: Agenda (internal only)
- Security: Agenda (internal only), Slides (internal only), Video (internal only)
- Disaster Recovery: Agenda (internal only), Slides (internal only), Video (internal only)
- Cells Mover and Isolation: Agenda (internal only)
- Scalability Headroom and Timeline: Agenda (internal only)
Decisions
- No external customers on Cells 1.0, internal dogfooding only. Cells 1.x is the target to onboard new or existing external customers.
Artifacts
- Day 1 recording: Part 1 (internal only), Part 2 (internal only)
- Day 2 recording (internal only)
- Database breakout recording (internal only)
- Organizations breakout recording (internal only)
c1674a0f
)