Diktyo: Network-Aware Scheduling in Container-Based Clouds

Chen Wang, José Santos, Chen Wang 0039, Tim Wauters, Filip De TurckIEEE Trans. Netw. Serv. Manag 2023

Introduction

Modern cloud-native applications are increasingly built as complex graphs of microservices. While Kubernetes (K8s) has become the industry standard for orchestrating these containers, its default scheduler remains largely "network-blind." It primarily allocates resources based on CPU and memory availability, often ignoring the critical impact of network latency and bandwidth on application performance.

Diktyo is a novel scheduling framework designed to address this gap. By integrating real-time network metrics into the placement logic, Diktyo achieves significant performance improvements, including up to a 45% reduction in end-to-end response times for complex microservice architectures.

The Challenge of Network-Blind Scheduling

In a typical Kubernetes cluster, two microservices that communicate frequently might be placed on nodes separated by high-latency network hops. This "spatial dependency" is often overlooked by the default scheduler. While theoretical models like Mixed-Integer Linear Programming (MILP) can find optimal placements, they are computationally prohibitive for real-time production use. Existing heuristic-based schedulers often lack a granular understanding of the underlying network topology or the specific requirements of the application group.

Methodology: The Diktyo Framework

Diktyo extends the Kubernetes scheduling plugin architecture by separating the scheduling logic (control plane) from network performance data (data plane). The framework relies on two key Custom Resource Definitions (CRDs):

  • AppGroup: Allows developers to define dependencies, bandwidth requirements, and latency constraints between specific pods.
  • NetworkTopology: Maintains a real-time map of cluster latency and bandwidth across different regions and zones, updated via active netperf probing.

The scheduling process follows a three-stage plugin strategy: TopologicalSort (QueueSort) orders pods based on dependencies; NodeNetworkCostFit (Filter) eliminates nodes that cannot meet constraints; and NetworkMinCost (Score) ranks remaining nodes by proximity to dependent pods.

The Diktyo framework integrates custom controllers and plugins into the standard Kubernetes scheduling workflow to enable network-aware placement.

Evaluation and Benchmarks

The authors evaluated Diktyo using real-world microservice benchmarks that represent common cloud workloads. The Online Boutique application, a complex e-commerce demo with 11 microservices, was used to measure end-to-end user response times. Additionally, a Redis Cluster was used to measure the effect of network proximity on CRUD throughput and master-slave synchronization.

The Online Boutique application serves as a benchmark for complex microservice interactions, where network latency between services directly impacts user experience.

Key Results

  • Performance Gains: Diktyo reduced average response times for the Online Boutique application by 45% compared to the default K8s scheduler. For the Redis cluster, throughput increased by 22%.
  • Efficiency: While MILP models can take minutes to schedule a handful of pods, Diktyo provides near-optimal placement in approximately 0.01 seconds, making it viable for production.
  • Scalability: Tests on simulated topologies of up to 10,000 nodes show that Diktyo's overhead scales logarithmically, remaining well within the requirements for large-scale production environments.

Conclusion

Diktyo demonstrates that network awareness is a critical component of modern cloud orchestration. By moving beyond simple resource-based scheduling, it significantly enhances the performance of distributed applications. Future work aims to automate the generation of AppGroup definitions through traffic profiling, further reducing the manual configuration burden on developers.

Summary updated

BibTeX
@article{wang2023diktyo,
  author = {Chen Wang and José Santos and Chen Wang and Tim Wauters and Filip De Turck},
  title = {{Diktyo: Network-Aware Scheduling in Container-Based Clouds}},
  journal = {IEEE Trans. Netw. Serv. Manag},
  year = {2023},
  doi = {10.1109/tnsm.2023.3271415},
}
Figure