How sidag26/dre-scale works
Project Type and Purpose
• DRe‑SCale is a full‑stack research platform for intelligent autoscaling of serverless functions on Kubernetes using Deep Recurrent Reinforcement Learning.
• It integrates an experimental cluster (MicroK8s + OpenFaaS + Prometheus), a suite of RL “scaling agents,” stateless serverless functions, and a workload generator.
File Structure
• Top‑level directories:
• openfaas‑functions – contains the matmul function, its handler and YAML manifest (the actual FaaS workload).
• scaling‑agents – multiple RL implementations (DRQN, PPO, LSTM‑PPO, SAC(+LSTM)) each with agent.py, env.py, tests and requirements.
• workload‑generator – Python script + JSON config to generate HTTP invocations.
• experimental‑results & images – notebooks and output used to analyze and illustrate system behavior.
• Infra/config files: MicroK8s isn’t in repo but implied; OpenFaaS manifests in openfaas‑functions; Prometheus configured externally.
Extract Architectural Insights from the README
• Core components:
• Kubernetes cluster (5 nodes)
• OpenFaaS gateway & function pods
• Prometheus for metrics
• RL controller (actor+critic) that polls Prometheus, computes scale‑out/in actions, and calls the OpenFaaS API.
• Workload generator that simulates client traffic.
• systemArchitectureDiagram.png (overall platform)
• agentArchitecture.png (neural network internals)