hero-cloud — slice-based VM compute manager using hero_rpc OSIS framework #1
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_compute#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Build a new Hero Cloud server to replace the existing broken implementation.
Hero Cloud is a virtual machine manager that runs on a physical host and manages
VMs using the Hero RPC framework. The key change from the old implementation is
replacing raw memory/storage allocation with a slice-based resource model.
What is a Slice?
A slice is the atomic unit of compute capacity — always exactly 4GB RAM plus
a proportional share of the host's SSD storage.
Slice math:
slice_count = floor((total_ram - 1) / 4)disk_per_slice = floor(total_disk / slice_count)Example: 32GB RAM, 2TB SSD → 7 slices, each with 4GB RAM and ~292GB disk
Requirements
hero_rpc_osis/OServer)/proc/meminfo,df)slice_sidFreebefore deploying a VMInUseafter VM is deployedFreewhen VM is deletedlist_vmsandget_vmattach_hypervisorchvm-lib(Cloud Hypervisor backend)Out of Scope (for now)
RPC Methods
Node:
node_register,node_statusSlices:
list_slices,get_sliceVMs:
deploy_vm,start_vm,stop_vm,restart_vm,delete_vm,list_vms,get_vm,attach_hypervisor,vm_logs,vm_execReferences
https://forge.ourworld.tf/lhumina_code/hero_rpchttps://forge.ourworld.tf/geomind_code/my_hypervisorhttps://forge.ourworld.tf/lhumina_code/hero_compute_managermahmoud referenced this issue2026-03-05 08:16:18 +00:00
Done