Kubernetes v1.6
alpha
The Poseidon-Firmament scheduler is an alternate scheduler that can be deployed alongside the default Kubernetes scheduler.
Poseidon is a service that acts as the integration glue between the Firmament scheduler and Kubernetes. Poseidon-Firmament augments the current Kubernetes scheduling capabilities. It incorporates novel flow network graph based scheduling capabilities alongside the default Kubernetes scheduler. The Firmament scheduler models workloads and clusters as flow networks and runs min-cost flow optimizations over these networks to make scheduling decisions.
Firmament models the scheduling problem as a constraint-based optimization over a flow network graph. This is achieved by reducing scheduling to a min-cost max-flow optimization problem. The Poseidon-Firmament scheduler dynamically refines the workload placements.
Poseidon-Firmament scheduler runs alongside the default Kubernetes scheduler as an alternate scheduler. You can simultaneously run multiple, different schedulers.
Flow graph scheduling with the Poseidon-Firmament scheduler provides the following advantages:
Kubernetes supports using multiple schedulers. You can specify, for a particular Pod, that it is scheduled by a custom scheduler (“poseidon” for this case), by setting the schedulerName
field in the PodSpec at the time of pod creation. The default scheduler will ignore that Pod and allow Poseidon-Firmament scheduler to schedule the Pod on a relevant node.
For example:
apiVersion: v1
kind: Pod
...
spec:
schedulerName: poseidon
...
As mentioned earlier, Poseidon-Firmament scheduler enables an extremely high throughput scheduling environment at scale due to its bulk scheduling approach versus Kubernetes pod-at-a-time approach. In our extensive tests, we have observed substantial throughput benefits as long as resource requirements (CPU/Memory) for incoming Pods are uniform across jobs (Replicasets/Deployments/Jobs), mainly due to efficient amortization of work across jobs.
Although, Poseidon-Firmament scheduler is capable of scheduling various types of workloads, such as service, batch, etc., the following are a few use cases where it excels the most:
Poseidon-Firmament is designed to work with Kubernetes release 1.6 and all subsequent releases.
Caution: Poseidon-Firmament scheduler does not provide support for high availability; its implementation assumes that the scheduler cannot fail.
Feature | Kubernetes Default Scheduler | Poseidon-Firmament Scheduler | Notes |
---|---|---|---|
Node Affinity/Anti-Affinity | Y | Y | |
Pod Affinity/Anti-Affinity - including support for pod anti-affinity symmetry | Y | Y | The default scheduler outperforms the Poseidon-Firmament scheduler pod affinity/anti-affinity functionality. |
Taints & Tolerations | Y | Y | |
Baseline Scheduling capability in accordance to available compute resources (CPU & Memory) on a node | Y | Y† | † Not all Predicates & Priorities are supported with Poseidon-Firmament. |
Extreme Throughput at scale | Y† | Y | † Bulk scheduling approach scales or increases workload placement. Firmament scheduler offers high throughput when resource requirements (CPU/Memory) for incoming Pods are uniform across ReplicaSets/Deployments/Jobs. |
Colocation Interference Avoidance | N | N | |
Priority Preemption | Y | N† | † Partially exists in Poseidon-Firmament versus extensive support in Kubernetes default scheduler. |
Inherent Rescheduling | N | Y† | † Poseidon-Firmament scheduler supports workload re-scheduling. In each scheduling run, Poseidon-Firmament considers all Pods, including running Pods, and as a result can migrate or evict Pods – a globally optimal scheduling environment. |
Gang Scheduling | N | Y | |
Support for Pre-bound Persistence Volume Scheduling | Y | Y | |
Support for Local Volume & Dynamic Persistence Volume Binding Scheduling | Y | N | |
High Availability | Y | N | |
Real-time metrics based scheduling | N | Y† | † Partially supported in Poseidon-Firmament using Heapster (now deprecated) for placing Pods using actual cluster utilization statistics rather than reservations. |
Support for Max-Pod per node | Y | Y | Poseidon-Firmament scheduler seamlessly co-exists with Kubernetes default scheduler. |
Support for Ephemeral Storage, in addition to CPU/Memory | Y | Y |
The Poseidon-Firmament installation guide explains how to deploy Poseidon-Firmament to your cluster.
Note: Please refer to the latest benchmark results for detailed throughput performance comparison test results between Poseidon-Firmament scheduler and the Kubernetes default scheduler.
Pod-by-pod schedulers, such as the Kubernetes default scheduler, process Pods in small batches (typically one at a time). These schedulers have the following crucial drawbacks:
These downsides of pod-by-pod schedulers are addressed by batching or bulk scheduling in Poseidon-Firmament scheduler. Processing several pods in a batch allows the scheduler to jointly consider their placement, and thus to find the best trade-off for the whole batch instead of one pod. At the same time it amortizes work across pods resulting in much higher throughput.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on Stack Overflow. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.