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