All projects
CLOUD-TO-EDGE · RLFinal-year project · ENSAI × IRISA
ENSAIIRISA

Smart Bidding

Where should a serverless function run across cloud, fog and edge? A reverse Vickrey auction (GIRAFF), greedy heuristics and a Dueling Double DQN agent compared in the FaaS-Sim simulator. Team project with Richard Gozan and Lynn Siewe.

Key metric
100%

SLAs accepted by the DQN agent, vs 92.8% for GIRAFF · 27-node topology

Architecture

Smart Bidding

Components, data flows and trust boundaries of the system.

WorkloadFaaS-Sim · event-drivenPluggable placement strategiesCloud-to-edge continuumEvaluationarriveu(t)costSLAstatewinnerplaceactionlearnEdge clientsSLA entry pointsPoisson arrivalsrate λ · low / mid / highSLA mixURLLC · Medium · RelaxedSLA requestCPU · memory · LmaxTopology generator4 tiers · heterogeneousEvent enginearrive → place → releaseEnergy cost modelP(u) = au² + bu + cNode stateCPU · memory · loadGIRAFF marketplacereverse Vickrey auctionBid propagationBFS · lowest bid winsGreedy baselinesEdge-First · Furthest · WardDQN agentDueling Double DQNAction maskingfeasible nodes onlyRewardλ₁ − λ₂ · C / CmaxExperience replay20k buffer · target netCloudhigh capacity · farFog regionalserver instancesFog localXeon · Intel NUCEdge devicesJetson · Raspberry PiPhase I~700 nodes · vs greedyPhase II27 nodes · 500 episodesMetricsacceptance · cost · tiersBest policy100% accepted · −12% cost

Scroll the diagram →

Technologies

  • Python
  • FaaS-Sim
  • Vickrey auction
  • Dueling Double DQN
  • MDP · action masking
  • Energy cost model
  • LaTeX

Design decisions

  1. 01

    Second-price reverse auction: each node bids its true marginal energy cost; the cheapest wins and is paid the second bid, which makes truthful bidding optimal without batching requests.

  2. 02

    Cost is the extra energy the function induces, P(u + uₛ) − P(u): a loaded node prices itself out, which yields emergent load balancing.

  3. 03

    The RL agent only chooses among feasible nodes (action masking), and its reward mirrors the global acceptance − normalized-cost objective; λ₂ = 20 gives the best trade-off.

  4. 04

    Since every node is an action, learning runs on 27 nodes; the ~700 nodes of Phase I call for multi-agent approaches (MARL).

The problem

In the cloud-to-edge continuum, nodes are heterogeneous and owned by different actors. Placing each function online under latency, CPU and memory constraints, while trading acceptance rate against energy cost, is NP-hard (reduction from two-dimensional bin packing).

What I built

Problem formulation and a marginal energy-cost model P(u) = au² + bu + c. Integration into FaaS-Sim of GIRAFF (second-price reverse auction with breadth-first bid propagation), three heuristics (Edge-First, Edge-Furthest, Edge-Ward) and a Dueling Double DQN agent modeled as an MDP with infeasible-action masking.

Result and trade-off

On ~700 nodes, GIRAFF stays close to the best acceptance rate while costing less than Edge-Furthest and Edge-First. On the reduced 27-node topology, the DQN agent (λ₂ = 20) accepts 100% of SLAs and cuts total cost by 12% versus GIRAFF, with a more balanced spread across edge, fog and cloud.

Scope and limitations

Simulation results, with centralized decisions and full observability. The RL agent is evaluated on 27 nodes because each node is an action: scaling up will require multi-agent approaches (MARL). Energy, fairness across nodes and SLA-violation penalties remain to be evaluated.
Next project
CEPS Data Platform & Explorer