Skip to content

Commit

Permalink
address comment on proto
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxa21 committed Sep 4, 2024
1 parent 52df3b8 commit ba37b36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions proto/meta.proto
Original file line number Diff line number Diff line change
Expand Up @@ -790,12 +790,13 @@ message RelationIdInfos {
map<uint32, FragmentIdToActorIdMap> map = 1;
}

message WorkerActorCount {
uint64 actor_count = 1;
uint64 parallelism = 2;
}


message ActorCountPerParallelism {
message WorkerActorCount {
uint64 actor_count = 1;
uint64 parallelism = 2;
}
map<uint32, WorkerActorCount> worker_id_to_actor_count = 1;
uint64 hard_limit = 2;
uint64 soft_limit = 3;
Expand Down
3 changes: 2 additions & 1 deletion src/common/src/util/cluster_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
use std::collections::HashMap;
use std::fmt::{self, Display, Formatter};

use risingwave_pb::meta::actor_count_per_parallelism::PbWorkerActorCount;
use risingwave_pb::meta::cluster_limit::PbLimit;
use risingwave_pb::meta::{PbActorCountPerParallelism, PbClusterLimit, PbWorkerActorCount};
use risingwave_pb::meta::{PbActorCountPerParallelism, PbClusterLimit};

pub const FREE_TIER_ACTOR_CNT_SOFT_LIMIT: usize = 25;
pub const FREE_TIER_ACTOR_CNT_HARD_LIMIT: usize = 100;
Expand Down

0 comments on commit ba37b36

Please sign in to comment.