feat: add parallelism to compaction request (#280)

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
This commit is contained in:
Lei, HUANG
2025-10-16 11:46:55 +08:00
committed by GitHub
parent 8d31a8cd39
commit 710f1fa95c
5 changed files with 280 additions and 133 deletions
+72 -37
View File
@@ -406,6 +406,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR CompactRequest::CompactRequest( PROTOBUF_CONSTEXPR CompactRequest::CompactRequest(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.region_id_)*/uint64_t{0u} /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_.parallelism_)*/0u
, /*decltype(_impl_.options_)*/{} , /*decltype(_impl_.options_)*/{}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {} , /*decltype(_impl_._oneof_case_)*/{}} {}
@@ -804,6 +805,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _impl_.region_id_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _impl_.region_id_),
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _impl_.parallelism_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _impl_.options_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CompactRequest, _impl_.options_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _internal_metadata_),
@@ -901,14 +903,14 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 245, -1, -1, sizeof(::greptime::v1::region::Regular)}, { 245, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 251, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, { 251, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 258, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, { 258, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 268, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, { 269, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 278, -1, -1, sizeof(::greptime::v1::region::All)}, { 279, -1, -1, sizeof(::greptime::v1::region::All)},
{ 284, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, { 285, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 292, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)}, { 293, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 301, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)}, { 302, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 308, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)}, { 309, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 316, -1, -1, sizeof(::greptime::v1::region::SyncRequest)}, { 317, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 326, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)}, { 327, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -1049,33 +1051,33 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014F" "ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014F"
"lushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regula" "lushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regula"
"r\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(" "r\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001("
"\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022" "\003\"\256\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022"
".\n\007regular\030\002 \001(\0132\033.greptime.v1.region.Re" ".\n\007regular\030\002 \001(\0132\033.greptime.v1.region.Re"
"gularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptim" "gularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptim"
"e.v1.region.StrictWindowH\000B\t\n\007options\"\204\001" "e.v1.region.StrictWindowH\000\022\023\n\013parallelis"
"\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\022&\n\003" "m\030\004 \001(\rB\t\n\007options\"\204\001\n\017TruncateRequest\022\021"
"all\030\002 \001(\0132\027.greptime.v1.region.AllH\000\022.\n\013" "\n\tregion_id\030\001 \001(\004\022&\n\003all\030\002 \001(\0132\027.greptim"
"time_ranges\030\003 \001(\0132\027.greptime.v1.TimeRang" "e.v1.region.AllH\000\022.\n\013time_ranges\030\003 \001(\0132\027"
"esH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDef\022*" ".greptime.v1.TimeRangesH\000B\006\n\004kind\"\005\n\003All"
"\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" "\"P\n\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132"
"ef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertReque" "\026.greptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001"
"st\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001(\013" "(\r\"Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001"
"2\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020Mit" "(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.Arro"
"oManifestInfo\022\035\n\025data_manifest_version\030\001" "wIpcH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025da"
" \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_manif" "ta_manifest_version\030\001 \001(\004\"V\n\022MetricManif"
"est_version\030\001 \001(\004\022!\n\031metadata_manifest_v" "estInfo\022\035\n\025data_manifest_version\030\001 \001(\004\022!"
"ersion\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_i" "\n\031metadata_manifest_version\030\002 \001(\004\"\275\001\n\013Sy"
"d\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.gr" "ncRequest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_man"
"eptime.v1.region.MitoManifestInfoH\000\022F\n\024m" "ifest_info\030\002 \001(\0132$.greptime.v1.region.Mi"
"etric_manifest_info\030\003 \001(\0132&.greptime.v1." "toManifestInfoH\000\022F\n\024metric_manifest_info"
"region.MetricManifestInfoH\000B\017\n\rmanifest_" "\030\003 \001(\0132&.greptime.v1.region.MetricManife"
"info\")\n\023ListMetadataRequest\022\022\n\nregion_id" "stInfoH\000B\017\n\rmanifest_info\")\n\023ListMetadat"
"s\030\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime.v" "aRequest\022\022\n\nregion_ids\030\001 \003(\0042Y\n\006Region\022O"
"1.region.RegionRequest\032\".greptime.v1.reg" "\n\006Handle\022!.greptime.v1.region.RegionRequ"
"ion.RegionResponseB]\n\025io.greptime.v1.reg" "est\032\".greptime.v1.region.RegionResponseB"
"ionB\006ServerZ<github.com/GreptimeTeam/gre" "]\n\025io.greptime.v1.regionB\006ServerZ<github"
"ptime-proto/go/greptime/v1/regionb\006proto" ".com/GreptimeTeam/greptime-proto/go/grep"
"3" "time/v1/regionb\006proto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[4] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[4] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -1085,7 +1087,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
false, false, 4921, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto, false, false, 4942, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
"greptime/v1/region/server.proto", "greptime/v1/region/server.proto",
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 4, 37, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 4, 37,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -8328,12 +8330,15 @@ CompactRequest::CompactRequest(const CompactRequest& from)
CompactRequest* const _this = this; (void)_this; CompactRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{ new (&_impl_) Impl_{
decltype(_impl_.region_id_){} decltype(_impl_.region_id_){}
, decltype(_impl_.parallelism_){}
, decltype(_impl_.options_){} , decltype(_impl_.options_){}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}}; , /*decltype(_impl_._oneof_case_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.region_id_ = from._impl_.region_id_; ::memcpy(&_impl_.region_id_, &from._impl_.region_id_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.parallelism_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.parallelism_));
clear_has_options(); clear_has_options();
switch (from.options_case()) { switch (from.options_case()) {
case kRegular: { case kRegular: {
@@ -8359,6 +8364,7 @@ inline void CompactRequest::SharedCtor(
(void)is_message_owned; (void)is_message_owned;
new (&_impl_) Impl_{ new (&_impl_) Impl_{
decltype(_impl_.region_id_){uint64_t{0u}} decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.parallelism_){0u}
, decltype(_impl_.options_){} , decltype(_impl_.options_){}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{} , /*decltype(_impl_._oneof_case_)*/{}
@@ -8415,7 +8421,9 @@ void CompactRequest::Clear() {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
_impl_.region_id_ = uint64_t{0u}; ::memset(&_impl_.region_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.parallelism_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.parallelism_));
clear_options(); clear_options();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
} }
@@ -8450,6 +8458,14 @@ const char* CompactRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// uint32 parallelism = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
_impl_.parallelism_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -8499,6 +8515,12 @@ uint8_t* CompactRequest::_InternalSerialize(
_Internal::strict_window(this).GetCachedSize(), target, stream); _Internal::strict_window(this).GetCachedSize(), target, stream);
} }
// uint32 parallelism = 4;
if (this->_internal_parallelism() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_parallelism(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -8520,6 +8542,11 @@ size_t CompactRequest::ByteSizeLong() const {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
} }
// uint32 parallelism = 4;
if (this->_internal_parallelism() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_parallelism());
}
switch (options_case()) { switch (options_case()) {
// .greptime.v1.region.Regular regular = 2; // .greptime.v1.region.Regular regular = 2;
case kRegular: { case kRegular: {
@@ -8560,6 +8587,9 @@ void CompactRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
if (from._internal_region_id() != 0) { if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id()); _this->_internal_set_region_id(from._internal_region_id());
} }
if (from._internal_parallelism() != 0) {
_this->_internal_set_parallelism(from._internal_parallelism());
}
switch (from.options_case()) { switch (from.options_case()) {
case kRegular: { case kRegular: {
_this->_internal_mutable_regular()->::greptime::v1::region::Regular::MergeFrom( _this->_internal_mutable_regular()->::greptime::v1::region::Regular::MergeFrom(
@@ -8592,7 +8622,12 @@ bool CompactRequest::IsInitialized() const {
void CompactRequest::InternalSwap(CompactRequest* other) { void CompactRequest::InternalSwap(CompactRequest* other) {
using std::swap; using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_); _internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.region_id_, other->_impl_.region_id_); ::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(CompactRequest, _impl_.parallelism_)
+ sizeof(CompactRequest::_impl_.parallelism_)
- PROTOBUF_FIELD_OFFSET(CompactRequest, _impl_.region_id_)>(
reinterpret_cast<char*>(&_impl_.region_id_),
reinterpret_cast<char*>(&other->_impl_.region_id_));
swap(_impl_.options_, other->_impl_.options_); swap(_impl_.options_, other->_impl_.options_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
} }
+31
View File
@@ -5127,6 +5127,7 @@ class CompactRequest final :
enum : int { enum : int {
kRegionIdFieldNumber = 1, kRegionIdFieldNumber = 1,
kParallelismFieldNumber = 4,
kRegularFieldNumber = 2, kRegularFieldNumber = 2,
kStrictWindowFieldNumber = 3, kStrictWindowFieldNumber = 3,
}; };
@@ -5139,6 +5140,15 @@ class CompactRequest final :
void _internal_set_region_id(uint64_t value); void _internal_set_region_id(uint64_t value);
public: public:
// uint32 parallelism = 4;
void clear_parallelism();
uint32_t parallelism() const;
void set_parallelism(uint32_t value);
private:
uint32_t _internal_parallelism() const;
void _internal_set_parallelism(uint32_t value);
public:
// .greptime.v1.region.Regular regular = 2; // .greptime.v1.region.Regular regular = 2;
bool has_regular() const; bool has_regular() const;
private: private:
@@ -5191,6 +5201,7 @@ class CompactRequest final :
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
struct Impl_ { struct Impl_ {
uint64_t region_id_; uint64_t region_id_;
uint32_t parallelism_;
union OptionsUnion { union OptionsUnion {
constexpr OptionsUnion() : _constinit_{} {} constexpr OptionsUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
@@ -10822,6 +10833,26 @@ inline ::greptime::v1::region::StrictWindow* CompactRequest::mutable_strict_wind
return _msg; return _msg;
} }
// uint32 parallelism = 4;
inline void CompactRequest::clear_parallelism() {
_impl_.parallelism_ = 0u;
}
inline uint32_t CompactRequest::_internal_parallelism() const {
return _impl_.parallelism_;
}
inline uint32_t CompactRequest::parallelism() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.CompactRequest.parallelism)
return _internal_parallelism();
}
inline void CompactRequest::_internal_set_parallelism(uint32_t value) {
_impl_.parallelism_ = value;
}
inline void CompactRequest::set_parallelism(uint32_t value) {
_internal_set_parallelism(value);
// @@protoc_insertion_point(field_set:greptime.v1.region.CompactRequest.parallelism)
}
inline bool CompactRequest::has_options() const { inline bool CompactRequest::has_options() const {
return options_case() != OPTIONS_NOT_SET; return options_case() != OPTIONS_NOT_SET;
} }
+79 -69
View File
@@ -1786,6 +1786,7 @@ type CompactRequest struct {
// *CompactRequest_Regular // *CompactRequest_Regular
// *CompactRequest_StrictWindow // *CompactRequest_StrictWindow
Options isCompactRequest_Options `protobuf_oneof:"options"` Options isCompactRequest_Options `protobuf_oneof:"options"`
Parallelism uint32 `protobuf:"varint,4,opt,name=parallelism,proto3" json:"parallelism,omitempty"`
} }
func (x *CompactRequest) Reset() { func (x *CompactRequest) Reset() {
@@ -1848,6 +1849,13 @@ func (x *CompactRequest) GetStrictWindow() *StrictWindow {
return nil return nil
} }
func (x *CompactRequest) GetParallelism() uint32 {
if x != nil {
return x.Parallelism
}
return 0
}
type isCompactRequest_Options interface { type isCompactRequest_Options interface {
isCompactRequest_Options() isCompactRequest_Options()
} }
@@ -2664,7 +2672,7 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x77,
0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x64, 0x73, 0x22, 0xdc, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x49, 0x64, 0x12, 0x37, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20,
@@ -2675,75 +2683,77 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69,
0x6e, 0x64, 0x6f, 0x77, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69,
0x6e, 0x64, 0x6f, 0x77, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c,
0x9f, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x73, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c,
0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
0x12, 0x2b, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x49, 0x64, 0x12, 0x2b, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x48, 0x00, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12,
0x3a, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x48, 0x00, 0x52,
0x0a, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b,
0x69, 0x6e, 0x64, 0x22, 0x05, 0x0a, 0x03, 0x41, 0x6c, 0x6c, 0x22, 0x65, 0x0a, 0x0f, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x35, 0x0a,
0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x44, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x49,
0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70, 0x63,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00, 0x52,
0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64,
0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61,
0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65,
0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4d, 0x65,
0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f,
0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x54, 0x0a,
0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69,
0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d,
0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48,
0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x61,
0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e,
0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, 0x74,
0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42,
0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x48, 0x00, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x3a, 0x0a, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x65, 0x42, 0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65, 0x72, 0x76,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x65, 0x72, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47,
0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70,
0x64, 0x22, 0x05, 0x0a, 0x03, 0x41, 0x6c, 0x6c, 0x22, 0x65, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72,
0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x64, 0x22,
0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49,
0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70, 0x63, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00, 0x52, 0x08, 0x61,
0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22,
0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69,
0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x74, 0x72,
0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32,
0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64,
0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xed,
0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x6d,
0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66,
0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x74,
0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52,
0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66,
0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x61, 0x6e, 0x69,
0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66,
0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69,
0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0f, 0x0a,
0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x34,
0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x4f,
0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -26313,6 +26313,12 @@ java.lang.String defaultValue);
*/ */
io.greptime.v1.region.Server.StrictWindowOrBuilder getStrictWindowOrBuilder(); io.greptime.v1.region.Server.StrictWindowOrBuilder getStrictWindowOrBuilder();
/**
* <code>uint32 parallelism = 4;</code>
* @return The parallelism.
*/
int getParallelism();
public io.greptime.v1.region.Server.CompactRequest.OptionsCase getOptionsCase(); public io.greptime.v1.region.Server.CompactRequest.OptionsCase getOptionsCase();
} }
/** /**
@@ -26393,6 +26399,11 @@ java.lang.String defaultValue);
optionsCase_ = 3; optionsCase_ = 3;
break; break;
} }
case 32: {
parallelism_ = input.readUInt32();
break;
}
default: { default: {
if (!parseUnknownField( if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) { input, unknownFields, extensionRegistry, tag)) {
@@ -26541,6 +26552,17 @@ java.lang.String defaultValue);
return io.greptime.v1.region.Server.StrictWindow.getDefaultInstance(); return io.greptime.v1.region.Server.StrictWindow.getDefaultInstance();
} }
public static final int PARALLELISM_FIELD_NUMBER = 4;
private int parallelism_;
/**
* <code>uint32 parallelism = 4;</code>
* @return The parallelism.
*/
@java.lang.Override
public int getParallelism() {
return parallelism_;
}
private byte memoizedIsInitialized = -1; private byte memoizedIsInitialized = -1;
@java.lang.Override @java.lang.Override
public final boolean isInitialized() { public final boolean isInitialized() {
@@ -26564,6 +26586,9 @@ java.lang.String defaultValue);
if (optionsCase_ == 3) { if (optionsCase_ == 3) {
output.writeMessage(3, (io.greptime.v1.region.Server.StrictWindow) options_); output.writeMessage(3, (io.greptime.v1.region.Server.StrictWindow) options_);
} }
if (parallelism_ != 0) {
output.writeUInt32(4, parallelism_);
}
unknownFields.writeTo(output); unknownFields.writeTo(output);
} }
@@ -26585,6 +26610,10 @@ java.lang.String defaultValue);
size += com.google.protobuf.CodedOutputStream size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.greptime.v1.region.Server.StrictWindow) options_); .computeMessageSize(3, (io.greptime.v1.region.Server.StrictWindow) options_);
} }
if (parallelism_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, parallelism_);
}
size += unknownFields.getSerializedSize(); size += unknownFields.getSerializedSize();
memoizedSize = size; memoizedSize = size;
return size; return size;
@@ -26602,6 +26631,8 @@ java.lang.String defaultValue);
if (getRegionId() if (getRegionId()
!= other.getRegionId()) return false; != other.getRegionId()) return false;
if (getParallelism()
!= other.getParallelism()) return false;
if (!getOptionsCase().equals(other.getOptionsCase())) return false; if (!getOptionsCase().equals(other.getOptionsCase())) return false;
switch (optionsCase_) { switch (optionsCase_) {
case 2: case 2:
@@ -26629,6 +26660,8 @@ java.lang.String defaultValue);
hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (37 * hash) + REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong( hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRegionId()); getRegionId());
hash = (37 * hash) + PARALLELISM_FIELD_NUMBER;
hash = (53 * hash) + getParallelism();
switch (optionsCase_) { switch (optionsCase_) {
case 2: case 2:
hash = (37 * hash) + REGULAR_FIELD_NUMBER; hash = (37 * hash) + REGULAR_FIELD_NUMBER;
@@ -26776,6 +26809,8 @@ java.lang.String defaultValue);
super.clear(); super.clear();
regionId_ = 0L; regionId_ = 0L;
parallelism_ = 0;
optionsCase_ = 0; optionsCase_ = 0;
options_ = null; options_ = null;
return this; return this;
@@ -26819,6 +26854,7 @@ java.lang.String defaultValue);
result.options_ = strictWindowBuilder_.build(); result.options_ = strictWindowBuilder_.build();
} }
} }
result.parallelism_ = parallelism_;
result.optionsCase_ = optionsCase_; result.optionsCase_ = optionsCase_;
onBuilt(); onBuilt();
return result; return result;
@@ -26871,6 +26907,9 @@ java.lang.String defaultValue);
if (other.getRegionId() != 0L) { if (other.getRegionId() != 0L) {
setRegionId(other.getRegionId()); setRegionId(other.getRegionId());
} }
if (other.getParallelism() != 0) {
setParallelism(other.getParallelism());
}
switch (other.getOptionsCase()) { switch (other.getOptionsCase()) {
case REGULAR: { case REGULAR: {
mergeRegular(other.getRegular()); mergeRegular(other.getRegular());
@@ -27242,6 +27281,37 @@ java.lang.String defaultValue);
onChanged();; onChanged();;
return strictWindowBuilder_; return strictWindowBuilder_;
} }
private int parallelism_ ;
/**
* <code>uint32 parallelism = 4;</code>
* @return The parallelism.
*/
@java.lang.Override
public int getParallelism() {
return parallelism_;
}
/**
* <code>uint32 parallelism = 4;</code>
* @param value The parallelism to set.
* @return This builder for chaining.
*/
public Builder setParallelism(int value) {
parallelism_ = value;
onChanged();
return this;
}
/**
* <code>uint32 parallelism = 4;</code>
* @return This builder for chaining.
*/
public Builder clearParallelism() {
parallelism_ = 0;
onChanged();
return this;
}
@java.lang.Override @java.lang.Override
public final Builder setUnknownFields( public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) { final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -33267,33 +33337,33 @@ java.lang.String defaultValue);
"ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014F" + "ocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014F" +
"lushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regula" + "lushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regula" +
"r\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(" + "r\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(" +
"\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022" + "\003\"\256\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022" +
".\n\007regular\030\002 \001(\0132\033.greptime.v1.region.Re" + ".\n\007regular\030\002 \001(\0132\033.greptime.v1.region.Re" +
"gularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptim" + "gularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptim" +
"e.v1.region.StrictWindowH\000B\t\n\007options\"\204\001" + "e.v1.region.StrictWindowH\000\022\023\n\013parallelis" +
"\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\022&\n\003" + "m\030\004 \001(\rB\t\n\007options\"\204\001\n\017TruncateRequest\022\021" +
"all\030\002 \001(\0132\027.greptime.v1.region.AllH\000\022.\n\013" + "\n\tregion_id\030\001 \001(\004\022&\n\003all\030\002 \001(\0132\027.greptim" +
"time_ranges\030\003 \001(\0132\027.greptime.v1.TimeRang" + "e.v1.region.AllH\000\022.\n\013time_ranges\030\003 \001(\0132\027" +
"esH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDef\022*" + ".greptime.v1.TimeRangesH\000B\006\n\004kind\"\005\n\003All" +
"\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" + "\"P\n\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132" +
"ef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertReque" + "\026.greptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001" +
"st\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001(\013" + "(\r\"Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001" +
"2\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020Mit" + "(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.Arro" +
"oManifestInfo\022\035\n\025data_manifest_version\030\001" + "wIpcH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025da" +
" \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_manif" + "ta_manifest_version\030\001 \001(\004\"V\n\022MetricManif" +
"est_version\030\001 \001(\004\022!\n\031metadata_manifest_v" + "estInfo\022\035\n\025data_manifest_version\030\001 \001(\004\022!" +
"ersion\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_i" + "\n\031metadata_manifest_version\030\002 \001(\004\"\275\001\n\013Sy" +
"d\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.gr" + "ncRequest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_man" +
"eptime.v1.region.MitoManifestInfoH\000\022F\n\024m" + "ifest_info\030\002 \001(\0132$.greptime.v1.region.Mi" +
"etric_manifest_info\030\003 \001(\0132&.greptime.v1." + "toManifestInfoH\000\022F\n\024metric_manifest_info" +
"region.MetricManifestInfoH\000B\017\n\rmanifest_" + "\030\003 \001(\0132&.greptime.v1.region.MetricManife" +
"info\")\n\023ListMetadataRequest\022\022\n\nregion_id" + "stInfoH\000B\017\n\rmanifest_info\")\n\023ListMetadat" +
"s\030\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime.v" + "aRequest\022\022\n\nregion_ids\030\001 \003(\0042Y\n\006Region\022O" +
"1.region.RegionRequest\032\".greptime.v1.reg" + "\n\006Handle\022!.greptime.v1.region.RegionRequ" +
"ion.RegionResponseB]\n\025io.greptime.v1.reg" + "est\032\".greptime.v1.region.RegionResponseB" +
"ionB\006ServerZ<github.com/GreptimeTeam/gre" + "]\n\025io.greptime.v1.regionB\006ServerZ<github" +
"ptime-proto/go/greptime/v1/regionb\006proto" + ".com/GreptimeTeam/greptime-proto/go/grep" +
"3" "time/v1/regionb\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -33476,7 +33546,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_region_CompactRequest_fieldAccessorTable = new internal_static_greptime_v1_region_CompactRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_region_CompactRequest_descriptor, internal_static_greptime_v1_region_CompactRequest_descriptor,
new java.lang.String[] { "RegionId", "Regular", "StrictWindow", "Options", }); new java.lang.String[] { "RegionId", "Regular", "StrictWindow", "Parallelism", "Options", });
internal_static_greptime_v1_region_TruncateRequest_descriptor = internal_static_greptime_v1_region_TruncateRequest_descriptor =
getDescriptor().getMessageTypes().get(25); getDescriptor().getMessageTypes().get(25);
internal_static_greptime_v1_region_TruncateRequest_fieldAccessorTable = new internal_static_greptime_v1_region_TruncateRequest_fieldAccessorTable = new
+1
View File
@@ -213,6 +213,7 @@ message CompactRequest {
Regular regular = 2; Regular regular = 2;
StrictWindow strict_window = 3; StrictWindow strict_window = 3;
} }
uint32 parallelism = 4;
} }
message TruncateRequest { message TruncateRequest {