Borg vs Kubernetes

Need advice about which tool to choose?Ask the StackShare community!

Borg

21
20
+ 1
0
Kubernetes

58.5K
50.6K
+ 1
677
Add tool

Borg vs Kubernetes: What are the differences?

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Decisions about Borg and Kubernetes
Simon Reymann
Senior Fullstack Developer at QUANTUSflow Software GmbH · | 30 upvotes · 8.9M views

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.
See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Borg
Pros of Kubernetes
    Be the first to leave a pro
    • 164
      Leading docker container management solution
    • 128
      Simple and powerful
    • 106
      Open source
    • 76
      Backed by google
    • 58
      The right abstractions
    • 25
      Scale services
    • 20
      Replication controller
    • 11
      Permission managment
    • 9
      Supports autoscaling
    • 8
      Cheap
    • 8
      Simple
    • 6
      Self-healing
    • 5
      No cloud platform lock-in
    • 5
      Promotes modern/good infrascture practice
    • 5
      Open, powerful, stable
    • 5
      Reliable
    • 4
      Scalable
    • 4
      Quick cloud setup
    • 3
      Cloud Agnostic
    • 3
      Captain of Container Ship
    • 3
      A self healing environment with rich metadata
    • 3
      Runs on azure
    • 3
      Backed by Red Hat
    • 3
      Custom and extensibility
    • 2
      Sfg
    • 2
      Gke
    • 2
      Everything of CaaS
    • 2
      Golang
    • 2
      Easy setup
    • 2
      Expandable

    Sign up to add or upvote prosMake informed product decisions

    Cons of Borg
    Cons of Kubernetes
      Be the first to leave a con
      • 16
        Steep learning curve
      • 15
        Poor workflow for development
      • 8
        Orchestrates only infrastructure
      • 4
        High resource requirements for on-prem clusters
      • 2
        Too heavy for simple systems
      • 1
        Additional vendor lock-in (Docker)
      • 1
        More moving parts to secure
      • 1
        Additional Technology Overhead

      Sign up to add or upvote consMake informed product decisions

      What is Borg?

      It is a deduplicating backup program. It provides an efficient and secure way to backup data. The data deduplication technique used makes it suitable for daily backups since only changes are stored. The authenticated encryption technique makes it suitable for backups to not fully trusted targets.

      What is Kubernetes?

      Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Borg?
      What companies use Kubernetes?
      See which teams inside your own company are using Borg or Kubernetes.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Borg?
      What tools integrate with Kubernetes?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      Kubernetesetcd+2
      2
      1160
      Dec 8 2020 at 5:50PM

      DigitalOcean

      GitHubMySQLPostgreSQL+11
      2
      2356
      PythonDockerKubernetes+7
      3
      1102
      May 21 2020 at 12:02AM

      Rancher Labs

      KubernetesAmazon EC2Grafana+12
      5
      1495
      Apr 16 2020 at 5:34AM

      Rancher Labs

      KubernetesRancher+2
      2
      937
      What are some alternatives to Borg and Kubernetes?
      restic
      It is a backup program that is fast, efficient and secure. It uses cryptography to guarantee the confidentiality and integrity of your data.
      Amazon Glacier
      In order to keep costs low, Amazon Glacier is optimized for data that is infrequently accessed and for which retrieval times of several hours are suitable. With Amazon Glacier, customers can reliably store large or small amounts of data for as little as $0.01 per gigabyte per month, a significant savings compared to on-premises solutions.
      Veeam Backup & Replication
      It is industry-leading Backup & Replication software. It delivers availability for all your cloud, virtual and physical workloads. Through a simple-by-design management console, you can easily achieve fast, flexible and reliable backup, recovery and replication for all your applications and data.
      AWS Storage Gateway
      The AWS Storage Gateway is a service connecting an on-premises software appliance with cloud-based storage. Once the AWS Storage Gateway’s software appliance is installed on a local host, you can mount Storage Gateway volumes to your on-premises application servers as iSCSI devices, enabling a wide variety of systems and applications to make use of them. Data written to these volumes is maintained on your on-premises storage hardware while being asynchronously backed up to AWS, where it is stored in Amazon Glacier or in Amazon S3 in the form of Amazon EBS snapshots. Snapshots are encrypted to make sure that customers do not have to worry about encrypting sensitive data themselves. When customers need to retrieve data, they can restore snapshots locally, or create Amazon EBS volumes from snapshots for use with applications running in Amazon EC2. It provides low-latency performance by maintaining frequently accessed data on-premises while securely storing all of your data encrypted.
      Afi
      Afi.ai is the latest generation of data protection for M365, Google Workspace & Kubernetes. Clean & responsive UI, easy to use SLA-based protection settings, and 2-3x better backup/restore performance compared to legacy vendors.
      See all alternatives