bitflicker64 commented on code in PR #569:
URL: https://github.com/apache/hugegraph-doc/pull/569#discussion_r4608965649


##########
content/en/docs/clients/restful-api/graphspace.md:
##########
@@ -32,29 +40,33 @@ POST http://localhost:8080/graphspaces
 
 ##### Request Body
 
-Note: CPU/memory and Kubernetes-related capabilities are not publicly 
available yet.
+CPU and memory limits configure namespace quotas when `server.use_k8s=true`; 
in other deployments they do not impose JVM or container limits.
+Changing these fields does not resize existing Pods.
 
 | Name                         | Required | Type    | Default | Range/Note     
                                                                | Description   
                                                                    |
 
|------------------------------|----------|---------|---------|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
 | name                         | Yes      | String  |         | Lowercase 
letters, digits, underscore; must start with a letter; max length 48 | 
Graphspace name                                                                 
  |
 | nickname                     | No       | String  | name    | Must be unique 
among graphspaces                                               | Display name 
of the graphspace                                                    |
 | description                  | No       | String  |         |                
                                                                | Description   
                                                                    |
-| cpu_limit                    | Yes      | Int     |         | > 0            
                                                                | CPU cores for 
the graphspace                                                      |
-| memory_limit                 | Yes      | Int     |         | > 0 (GB)       
                                                                | Memory quota 
in GB                                                                |
-| storage_limit                | Yes      | Int     |         | > 0            
                                                                | Maximum disk 
usage, in GB                                                                |
-| compute_cpu_limit            | No       | Int     | 0       | >= 0           
                                                                | Extra 
HugeGraph-Computer CPU cores; falls back to `cpu_limit` if unset or 0       |
-| compute_memory_limit         | No       | Int     | 0       | >= 0           
                                                                | Extra 
HugeGraph-Computer memory in GB; falls back to `memory_limit` if unset or 0 |
+| cpu_limit                    | No | Int     | 128 | > 0                      
                                                      | CPU cores for the 
graphspace                                                      |
+| memory_limit                 | No | Int     | 128 | > 0 (GB)                 
                                                      | Memory quota in GB      
                                                          |
+| storage_limit                | No | Int     | 10240 | > 0                    
                                                        | Maximum disk usage, 
in GB                                                                |
+| compute_cpu_limit            | No       | Int     | 0       | >= 0           
                                                                | Compute 
quota; omitted or `0` continuously inherits `cpu_limit` |
+| compute_memory_limit         | No       | Int     | 0       | >= 0           
                                                                | Compute 
quota; omitted or `0` continuously inherits `memory_limit` |
 | oltp_namespace               | No       | String  | ""      |                
                                                                | Kubernetes 
namespace for OLTP HugeGraph-Server                                    |
 | olap_namespace               | No       | String  | ""      | Resources are 
merged when identical to `oltp_namespace`                        | Kubernetes 
namespace for OLAP / HugeGraph-Computer                                |
 | storage_namespace            | No       | String  | ""      |                
                                                                | Kubernetes 
namespace for HugeGraph-Store                                          |
 | operator_image_path          | No       | String  | ""      |                
                                                                | 
HugeGraph-Computer operator image registry                                      
  |
 | internal_algorithm_image_url | No       | String  | ""      |                
                                                                | 
HugeGraph-Computer algorithm image registry                                     
  |
-| max_graph_number             | Yes      | Int     |         | > 0            
                                                                | Maximum 
number of graphs that can be created inside the graphspace                |
-| max_role_number              | No       | Int     | 0       |                
                                                                | Maximum 
number of roles that can be created inside the graphspace                 |
+| max_graph_number             | No | Int     | 100 | > 0                      
                                                      | Maximum number of 
graphs that can be created inside the graphspace                |
+| max_role_number              | No | Int     | 100 |                          
                                                      | Maximum number of roles 
that can be created inside the graphspace                 |
 | auth                         | No       | Boolean | false   | true / false   
                                                                | Whether to 
enable authentication for the graphspace                               |
 | configs                      | No       | Map     |         |                
                                                                | Additional 
configuration                                                          |
 {.td-table--wide}
 
+These are current Server REST creation defaults. Existing spaces keep their 
configured limits; clients such as Hubble can submit different values.

Review Comment:
   Minor: "These are current Server REST creation defaults. Existing spaces 
keep their configured limits" ties the table to a point in time, so readers 
cannot tell which defaults "current" means once they change. Rephrase it 
timelessly, for example "Server applies these defaults only when a create 
request omits the field; a space keeps the limits stored at creation, and 
clients such as Hubble can submit other values.", and make the same change to 
"以上是当前 Server REST 创建接口的默认值;已有图空间保留原配额" in 
`content/cn/docs/clients/restful-api/graphspace.md`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to