You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Partition will be autoscaled up (divided into 2 partitions)
1206
+
//after write speed to the partition exceeds scale_up_threshold_percent (in percentage of maximum write speed to the partition) for the period of time threshold_time_seconds
1207
+
1208
+
//Partition will become a candidate to the autoscaling down
1209
+
//after write speed doesn’t reach scale_down_threshold_percent (in percentage of maximum write speed to the partition) for the period of time threshold_time_seconds
1210
+
//This candidate partition will be autoscaled down when other neighbour partition will become a candidate to the autoscaling down and not earlier than a retention period.
// Signal from server that client has finished reading the partition and all messages have been read.
565
+
// Once a partition has been finished no further messages will ever arrive to that partition.
566
+
// This command is a hint to the client to commit offsets, after which the child partitions will be balanced independently in different reading sessions.
567
+
// Unlike StopPartitionSessionRequest, the client does not have to close the reading session.
568
+
// Client should not send a response to the command.
569
+
messageEndPartitionSession {
570
+
// Partition session identifier.
571
+
int64partition_session_id=1;
572
+
573
+
// Ids of partitions which were merged with the ended partition.
574
+
repeatedint64adjacent_partition_ids=2;
575
+
// Ids of partitions which was formed when the ended partition was split or merged.
576
+
repeatedint64child_partition_ids=3;
577
+
}
561
578
}
562
579
563
580
// Messages for bidirectional streaming rpc StreamDirectRead
@@ -796,24 +813,93 @@ message AlterConsumer {
796
813
map<string, string> alter_attributes=6;
797
814
}
798
815
816
+
enumAutoscalingStrategy {
817
+
// The autoscaling algorithm is not specified. The default value will be used.
818
+
AUTOSCALING_STRATEGY_UNSPECIFIED=0;
819
+
// The autoscaling is disabled.
820
+
AUTOSCALING_STRATEGY_DISABLED=1;
821
+
// The autoscaling algorithm will increase partitions count depending on the load characteristics.
822
+
// The autoscaling algorithm will never decrease the number of partitions.
823
+
AUTOSCALING_STRATEGY_SCALE_UP=2;
824
+
// The autoscaling algorithm will both increase and decrease partitions count depending on the load characteristics.
825
+
AUTOSCALING_STRATEGY_SCALE_UP_AND_DOWN=3;
826
+
}
827
+
799
828
// Partitioning settings for topic.
800
829
messagePartitioningSettings {
801
-
// Minimum partition count auto merge would stop working at.
830
+
// Auto merge would stop working when the partitions count reaches min_active_partitions
//Partition will be autoscaled up (divided into 2 partitions)
853
+
//after write speed to the partition exceeds scale_up_threshold_percent (in percentage of maximum write speed to the partition) for the period of time threshold_time_seconds
854
+
855
+
//Partition will become a candidate to the autoscaling down
856
+
//after write speed doesn’t reach scale_down_threshold_percent (in percentage of maximum write speed to the partition) for the period of time threshold_time_seconds
857
+
//This candidate partition will be autoscaled down when other neighbour partition will become a candidate to the autoscaling down and not earlier than a retention period.
Copy file name to clipboardExpand all lines: src/client/federated_topic/impl/federated_read_session_event.cpp
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ using namespace NFederatedTopic;
11
11
using TCommitOffsetAcknowledgementEvent = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TCommitOffsetAcknowledgementEvent>;
12
12
using TStartPartitionSessionEvent = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TStartPartitionSessionEvent>;
13
13
using TStopPartitionSessionEvent = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TStopPartitionSessionEvent>;
14
+
using TEndPartitionSessionEvent = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TEndPartitionSessionEvent>;
14
15
using TPartitionSessionStatusEvent = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TPartitionSessionStatusEvent>;
15
16
using TPartitionSessionClosedEvent = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TPartitionSessionClosedEvent>;
16
17
using TMessage = NFederatedTopic::TReadSessionEvent::TFederated<NTopic::TReadSessionEvent::TDataReceivedEvent::TMessage>;
@@ -78,6 +79,20 @@ void TPrintable<TStopPartitionSessionEvent>::DebugString(TStringBuilder& ret, bo
0 commit comments