Need advice about which tool to choose?Ask the StackShare community!
Borg vs Kubernetes: What are the differences?
Provisioning: One key difference between Borg and Kubernetes is in their provisioning capabilities. Borg is designed to manage large-scale, tightly integrated clusters and utilizes a two-level scheduling model where there is a centralized Borgmaster that assigns tasks to individual machines. On the other hand, in Kubernetes, provisioning is handled through a declarative approach using YAML or JSON files where users define the desired state of the system and Kubernetes takes care of scheduling and maintaining that state.
Resource Management: Borg and Kubernetes also differ in their resource management approach. Borg uses a monolithic scheduler that makes global scheduling decisions based on the resource availability across the entire cluster. It optimizes for efficient cluster utilization by packing tasks tightly. In contrast, Kubernetes uses a more modular and decentralized architecture with a scheduler per node. Each node is responsible for scheduling tasks based on its local resources, allowing for better isolation and fault tolerance.
Pod Abstractions: Borg and Kubernetes have different abstractions for containers. In Borg, containers are grouped into job-level abstractions, where each job consists of one or more tasks. This provides a higher-level concept for organizing related containers together. In Kubernetes, the primary abstraction is the "Pod," which represents a group of one or more containers that are scheduled together on the same host. Pod allows for co-located containers to share the same network and storage, facilitating tighter integration between them.
Persistence: Borg and Kubernetes differ in how they handle data persistence. In Borg, applications often rely on Borg Filesystem (BFS) for durable and replicated storage. BFS provides a distributed file system interface to applications running on Borg. Kubernetes, on the other hand, does not provide its own distributed file system but instead offers various mechanisms for persistent storage, such as Persistent Volumes and Persistent Volume Claims, which enable applications to request and consume storage resources in a platform-agnostic way.
Monitoring and Logging: Borg and Kubernetes have different approaches to monitoring and logging. Borg provides a built-in monitoring and logging system, which collects and aggregates metrics and logs from all tasks running on the cluster. It offers a centralized interface for querying and retrieving these data. In Kubernetes, monitoring and logging are typically handled by separate tools and systems, such as Prometheus for monitoring and Elasticsearch-Fluentd-Kibana (EFK) stack for logging. Kubernetes provides APIs and integrations for these external systems to collect and analyze the monitoring and logging data.
Maturity and Adoption: While both Borg and Kubernetes are widely used for container orchestration, there is a difference in their maturity and adoption. Borg was developed internally at Google and has been used in production for many years. It has a proven track record of managing Google's massive-scale workloads. Kubernetes, on the other hand, originated as an open-source project by Google based on their experience with Borg. It has gained significant popularity in the industry and has a vibrant ecosystem with a large community contributing to its development and adoption.
In summary, Borg and Kubernetes differ in their provisioning approach, resource management, container abstractions, data persistence, monitoring/logging strategies, and maturity/adoption levels.
Our whole DevOps stack consists of the following tools:
- GitHub (incl. GitHub Pages/Markdown for Documentation, GettingStarted and HowTo's) for collaborative review and code management tool
- Respectively Git as revision control system
- SourceTree as Git GUI
- Visual Studio Code as IDE
- CircleCI for continuous integration (automatize development process)
- Prettier / TSLint / ESLint as code linter
- SonarQube as quality gate
- Docker as container management (incl. Docker Compose for multi-container application management)
- VirtualBox for operating system simulation tests
- Kubernetes as cluster management for docker containers
- Heroku for deploying in test environments
- nginx as web server (preferably used as facade server in production environment)
- SSLMate (using OpenSSL) for certificate management
- Amazon EC2 (incl. Amazon S3) for deploying in stage (production-like) and production environments
- PostgreSQL as preferred database system
- Redis as preferred in-memory database/store (great for caching)
The main reason we have chosen Kubernetes over Docker Swarm is related to the following artifacts:
- Key features: Easy and flexible installation, Clear dashboard, Great scaling operations, Monitoring is an integral part, Great load balancing concepts, Monitors the condition and ensures compensation in the event of failure.
- Applications: An application can be deployed using a combination of pods, deployments, and services (or micro-services).
- Functionality: Kubernetes as a complex installation and setup process, but it not as limited as Docker Swarm.
- Monitoring: It supports multiple versions of logging and monitoring when the services are deployed within the cluster (Elasticsearch/Kibana (ELK), Heapster/Grafana, Sysdig cloud integration).
- Scalability: All-in-one framework for distributed systems.
- Other Benefits: Kubernetes is backed by the Cloud Native Computing Foundation (CNCF), huge community among container orchestration tools, it is an open source and modular tool that works with any OS.
Pros of Borg
Pros of Kubernetes
- Leading docker container management solution166
- Simple and powerful129
- Open source107
- Backed by google76
- The right abstractions58
- Scale services25
- Replication controller20
- Permission managment11
- Supports autoscaling9
- Simple8
- Cheap8
- Self-healing6
- Open, powerful, stable5
- Reliable5
- No cloud platform lock-in5
- Promotes modern/good infrascture practice5
- Scalable4
- Quick cloud setup4
- Custom and extensibility3
- Captain of Container Ship3
- Cloud Agnostic3
- Backed by Red Hat3
- Runs on azure3
- A self healing environment with rich metadata3
- Everything of CaaS2
- Gke2
- Golang2
- Easy setup2
- Expandable2
- Sfg2
Sign up to add or upvote prosMake informed product decisions
Cons of Borg
Cons of Kubernetes
- Steep learning curve16
- Poor workflow for development15
- Orchestrates only infrastructure8
- High resource requirements for on-prem clusters4
- Too heavy for simple systems2
- Additional vendor lock-in (Docker)1
- More moving parts to secure1
- Additional Technology Overhead1