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


##########
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                                                      |

Review Comment:
   **Specify the Server version for create defaults**
   
   On Server 1.7.0, omitting `cpu_limit`, `memory_limit`, `storage_limit` or 
`max_graph_number` leaves it at zero, and `JsonGraphSpace.checkCreate()` 
rejects the request. These defaults apply to the newer implementation, so the 
table can lead 1.7.0 users to submit a request that fails. Please state the 
applicable version or build and retain the older requirements in both languages.



##########
content/en/docs/clients/restful-api/graphspace.md:
##########
@@ -201,12 +213,16 @@ GET http://localhost:8080/graphspaces/gs1
 >   graphspace settings with `GET /graphspaces/{name}` first and preserve 
 > fields that are not being changed.
 > - **Compute Limit Inheritance**: Setting `compute_cpu_limit: 0` or 
 > `compute_memory_limit: 0` (or omitting them on creation) means continuously
 >   inheriting `cpu_limit` and `memory_limit`. Zero represents inheritance, 
 > not unlimited or zero allocation.
+>   On update, omitting a compute field preserves its current setting; 
explicit zero restores inheritance. Responses retain that zero marker.

Review Comment:
   **Qualify the zero-reset behavior by version**
   
   Server 1.7.0's update handler only applies a compute limit when it is 
nonzero, so sending `0` leaves an existing independent limit unchanged rather 
than restoring inheritance. Please identify the versions or builds supporting 
this reset and describe the older behavior in both languages.



-- 
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