...
This commit is contained in:
@@ -7,7 +7,7 @@ This module defines data models for nodes, groups, slices in a cloud/grid infras
|
||||
Represents a single node in the grid with slices, devices, and capacity.
|
||||
|
||||
| Field | Type | Description |
|
||||
|----------------|-------------------|-------------|
|
||||
| ------------- | -------------- | -------------------------------------------- |
|
||||
| id | int | Unique node ID |
|
||||
| nodegroupid | int | ID of the owning node group |
|
||||
| uptime | int | Uptime percentage (0-100) |
|
||||
@@ -23,7 +23,7 @@ Represents a single node in the grid with slices, devices, and capacity.
|
||||
Represents a group of nodes owned by a farmer, with policies.
|
||||
|
||||
| Field | Type | Description |
|
||||
|------------------------|---------------|-------------|
|
||||
| ----------------------------------- | ------------- | ---------------------------------------------- |
|
||||
| id | u32 | Unique group ID |
|
||||
| farmerid | u32 | Farmer/user ID |
|
||||
| secret | string | Encrypted secret for booting nodes |
|
||||
@@ -40,7 +40,7 @@ Represents a group of nodes owned by a farmer, with policies.
|
||||
Extends Node for simulation purposes with cost.
|
||||
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| --------------- | ---- | --------------------------------------- |
|
||||
| ( Embeds Node ) | - | All Node fields |
|
||||
| cost | f64 | Simulation cost (free in some contexts) |
|
||||
|
||||
@@ -49,7 +49,7 @@ Extends Node for simulation purposes with cost.
|
||||
Represents a compute slice (e.g., 1GB memory unit).
|
||||
|
||||
| Field | Type | Description |
|
||||
|-----------------------------|---------------|-------------|
|
||||
| ------------------------ | ------------- | -------------------------------- |
|
||||
| nodeid | u32 | Owning node ID |
|
||||
| id | int | Slice ID in node |
|
||||
| mem_gb | f64 | Memory in GB |
|
||||
@@ -69,7 +69,7 @@ Represents a compute slice (e.g., 1GB memory unit).
|
||||
Represents a 1GB storage slice.
|
||||
|
||||
| Field | Type | Description |
|
||||
|------------------|---------------|-------------|
|
||||
| -------------- | ------------- | -------------------------------- |
|
||||
| nodeid | u32 | Owning node ID |
|
||||
| id | int | Slice ID in node |
|
||||
| price_cc | f64 | Price per slice in cloud credits |
|
||||
@@ -81,7 +81,7 @@ Represents a 1GB storage slice.
|
||||
Aggregated hardware capacity for a node.
|
||||
|
||||
| Field | Type | Description |
|
||||
|--------------|------|-------------|
|
||||
| ---------- | ---- | ---------------------- |
|
||||
| storage_gb | f64 | Total storage in GB |
|
||||
| mem_gb | f64 | Total memory in GB |
|
||||
| mem_gb_gpu | f64 | Total GPU memory in GB |
|
||||
@@ -93,7 +93,7 @@ Aggregated hardware capacity for a node.
|
||||
Descriptive info for a node (used in aggregations).
|
||||
|
||||
| Field | Type | Description |
|
||||
|--------------|--------|-------------|
|
||||
| ----------- | ------ | ------------------ |
|
||||
| cpu_brand | string | CPU brand |
|
||||
| cpu_version | string | CPU version |
|
||||
| mem | string | Memory description |
|
||||
|
||||
Reference in New Issue
Block a user