Skip to content

Commit

Permalink
[Bug] fix RayActorOptionSpec.items.spec.serveConfig.deployments.rayAc…
Browse files Browse the repository at this point in the history
…torOptions.memory int32 data type (#1220)

fix RayActorOptionSpec.items.spec.serveConfig.deployments.rayActorOptions.memory int32 data type
  • Loading branch information
kevin85421 committed Jul 7, 2023
1 parent 1ee5f95 commit ddb5e52
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions helm-chart/kuberay-operator/crds/ray.io_rayservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12113,14 +12113,14 @@ spec:
acceleratorType:
type: string
memory:
format: int32
format: int64
type: integer
numCpus:
type: number
numGpus:
type: number
objectStoreMemory:
format: int32
format: int64
type: integer
resources:
type: string
Expand Down
12 changes: 6 additions & 6 deletions proto/go_client/serve.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions proto/kuberay_api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1629,13 +1629,13 @@
"description": "The number of GPUs required by the deployment's application per replica."
},
"memoryPerActor": {
"type": "integer",
"format": "int32",
"type": "string",
"format": "uint64",
"description": "Restrict the heap memory usage of each replica."
},
"objectStoreMemoryPerActor": {
"type": "integer",
"format": "int32",
"type": "string",
"format": "uint64",
"description": "Restrict the object store memory used per replica when creating objects."
},
"customResource": {
Expand Down
4 changes: 2 additions & 2 deletions proto/serve.proto
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ message ActorOptions {
// The number of GPUs required by the deployment's application per replica.
double gpus_per_actor = 3;
// Restrict the heap memory usage of each replica.
int32 memory_per_actor = 4;
uint64 memory_per_actor = 4;
// Restrict the object store memory used per replica when creating objects.
int32 object_store_memory_per_actor = 5;
uint64 object_store_memory_per_actor = 5;
// The custom resources required by each replica.
string custom_resource = 6;
// Forces replicas to run on nodes with the specified accelerator type.
Expand Down
8 changes: 4 additions & 4 deletions proto/swagger/serve.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,13 @@
"description": "The number of GPUs required by the deployment's application per replica."
},
"memoryPerActor": {
"type": "integer",
"format": "int32",
"type": "string",
"format": "uint64",
"description": "Restrict the heap memory usage of each replica."
},
"objectStoreMemoryPerActor": {
"type": "integer",
"format": "int32",
"type": "string",
"format": "uint64",
"description": "Restrict the object store memory used per replica when creating objects."
},
"customResource": {
Expand Down
4 changes: 2 additions & 2 deletions ray-operator/apis/ray/v1alpha1/rayservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ type RayActorOptionSpec struct {
RuntimeEnv string `json:"runtimeEnv,omitempty"`
NumCpus *float64 `json:"numCpus,omitempty"`
NumGpus *float64 `json:"numGpus,omitempty"`
Memory *int32 `json:"memory,omitempty"`
ObjectStoreMemory *int32 `json:"objectStoreMemory,omitempty"`
Memory *uint64 `json:"memory,omitempty"`
ObjectStoreMemory *uint64 `json:"objectStoreMemory,omitempty"`
Resources string `json:"resources,omitempty"`
AcceleratorType string `json:"acceleratorType,omitempty"`
}
Expand Down
4 changes: 2 additions & 2 deletions ray-operator/apis/ray/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ray-operator/config/crd/bases/ray.io_rayservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12113,14 +12113,14 @@ spec:
acceleratorType:
type: string
memory:
format: int32
format: int64
type: integer
numCpus:
type: number
numGpus:
type: number
objectStoreMemory:
format: int32
format: int64
type: integer
resources:
type: string
Expand Down
4 changes: 2 additions & 2 deletions ray-operator/controllers/ray/utils/serve_api_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ type RayActorOptionSpec struct {
RuntimeEnv map[string]interface{} `json:"runtime_env,omitempty"`
NumCpus *float64 `json:"num_cpus,omitempty"`
NumGpus *float64 `json:"num_gpus,omitempty"`
Memory *int32 `json:"memory,omitempty"`
ObjectStoreMemory *int32 `json:"object_store_memory,omitempty"`
Memory *uint64 `json:"memory,omitempty"`
ObjectStoreMemory *uint64 `json:"object_store_memory,omitempty"`
Resources map[string]interface{} `json:"resources,omitempty"`
AcceleratorType string `json:"accelerator_type,omitempty"`
}

0 comments on commit ddb5e52

Please sign in to comment.