github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/protobuf/ClusterStatus.proto (about) 1 package proto; 2 /** 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20 // This file contains protocol buffers that are used for ClustStatus 21 22 option java_package = "org.apache.hadoop.hbase.protobuf.generated"; 23 option java_outer_classname = "ClusterStatusProtos"; 24 option java_generate_equals_and_hash = true; 25 option optimize_for = SPEED; 26 27 import "HBase.proto"; 28 import "ClusterId.proto"; 29 import "FS.proto"; 30 31 message RegionState { 32 required RegionInfo region_info = 1; 33 required State state = 2; 34 optional uint64 stamp = 3; 35 enum State { 36 OFFLINE = 0; // region is in an offline state 37 PENDING_OPEN = 1; // sent rpc to server to open but has not begun 38 OPENING = 2; // server has begun to open but not yet done 39 OPEN = 3; // server opened region and updated meta 40 PENDING_CLOSE = 4; // sent rpc to server to close but has not begun 41 CLOSING = 5; // server has begun to close but not yet done 42 CLOSED = 6; // server closed region and updated meta 43 SPLITTING = 7; // server started split of a region 44 SPLIT = 8; // server completed split of a region 45 FAILED_OPEN = 9; // failed to open, and won't retry any more 46 FAILED_CLOSE = 10; // failed to close, and won't retry any more 47 MERGING = 11; // server started merge a region 48 MERGED = 12; // server completed merge of a region 49 SPLITTING_NEW = 13; // new region to be created when RS splits a parent 50 // region but hasn't be created yet, or master doesn't 51 // know it's already created 52 MERGING_NEW = 14; // new region to be created when RS merges two 53 // daughter regions but hasn't be created yet, or 54 // master doesn't know it's already created 55 } 56 } 57 58 message RegionInTransition { 59 required RegionSpecifier spec = 1; 60 required RegionState region_state = 2; 61 } 62 63 message RegionLoad { 64 /** the region specifier */ 65 required RegionSpecifier region_specifier = 1; 66 67 /** the number of stores for the region */ 68 optional uint32 stores = 2; 69 70 /** the number of storefiles for the region */ 71 optional uint32 storefiles = 3; 72 73 /** the total size of the store files for the region, uncompressed, in MB */ 74 optional uint32 store_uncompressed_size_MB = 4; 75 76 /** the current total size of the store files for the region, in MB */ 77 optional uint32 storefile_size_MB = 5; 78 79 /** the current size of the memstore for the region, in MB */ 80 optional uint32 memstore_size_MB = 6; 81 82 /** 83 * The current total size of root-level store file indexes for the region, 84 * in MB. The same as {@link #rootIndexSizeKB} but in MB. 85 */ 86 optional uint32 storefile_index_size_MB = 7; 87 88 /** the current total read requests made to region */ 89 optional uint64 read_requests_count = 8; 90 91 /** the current total write requests made to region */ 92 optional uint64 write_requests_count = 9; 93 94 /** the total compacting key values in currently running compaction */ 95 optional uint64 total_compacting_KVs = 10; 96 97 /** the completed count of key values in currently running compaction */ 98 optional uint64 current_compacted_KVs = 11; 99 100 /** The current total size of root-level indexes for the region, in KB. */ 101 optional uint32 root_index_size_KB = 12; 102 103 /** The total size of all index blocks, not just the root level, in KB. */ 104 optional uint32 total_static_index_size_KB = 13; 105 106 /** 107 * The total size of all Bloom filter blocks, not just loaded into the 108 * block cache, in KB. 109 */ 110 optional uint32 total_static_bloom_size_KB = 14; 111 112 /** the most recent sequence Id from cache flush */ 113 optional uint64 complete_sequence_id = 15; 114 115 /** The current data locality for region in the regionserver */ 116 optional float data_locality = 16; 117 } 118 119 /* Server-level protobufs */ 120 121 message ReplicationLoadSink { 122 required uint64 ageOfLastAppliedOp = 1; 123 required uint64 timeStampsOfLastAppliedOp = 2; 124 } 125 126 message ReplicationLoadSource { 127 required string peerID = 1; 128 required uint64 ageOfLastShippedOp = 2; 129 required uint32 sizeOfLogQueue = 3; 130 required uint64 timeStampOfLastShippedOp = 4; 131 required uint64 replicationLag = 5; 132 } 133 134 message ServerLoad { 135 /** Number of requests since last report. */ 136 optional uint32 number_of_requests = 1; 137 138 /** Total Number of requests from the start of the region server. */ 139 optional uint32 total_number_of_requests = 2; 140 141 /** the amount of used heap, in MB. */ 142 optional uint32 used_heap_MB = 3; 143 144 /** the maximum allowable size of the heap, in MB. */ 145 optional uint32 max_heap_MB = 4; 146 147 /** Information on the load of individual regions. */ 148 repeated RegionLoad region_loads = 5; 149 150 /** 151 * Regionserver-level coprocessors, e.g., WALObserver implementations. 152 * Region-level coprocessors, on the other hand, are stored inside RegionLoad 153 * objects. 154 */ 155 repeated Coprocessor coprocessors = 6; 156 157 /** 158 * Time when incremental (non-total) counts began being calculated (e.g. number_of_requests) 159 * time is measured as the difference, measured in milliseconds, between the current time 160 * and midnight, January 1, 1970 UTC. 161 */ 162 optional uint64 report_start_time = 7; 163 164 /** 165 * Time when report was generated. 166 * time is measured as the difference, measured in milliseconds, between the current time 167 * and midnight, January 1, 1970 UTC. 168 */ 169 optional uint64 report_end_time = 8; 170 171 /** 172 * The port number that this region server is hosing an info server on. 173 */ 174 optional uint32 info_server_port = 9; 175 176 /** 177 * The replicationLoadSource for the replication Source status of this region server. 178 */ 179 repeated ReplicationLoadSource replLoadSource = 10; 180 181 /** 182 * The replicationLoadSink for the replication Sink status of this region server. 183 */ 184 optional ReplicationLoadSink replLoadSink = 11; 185 } 186 187 message LiveServerInfo { 188 required ServerName server = 1; 189 required ServerLoad server_load = 2; 190 } 191 192 message ClusterStatus { 193 optional HBaseVersionFileContent hbase_version = 1; 194 repeated LiveServerInfo live_servers = 2; 195 repeated ServerName dead_servers = 3; 196 repeated RegionInTransition regions_in_transition = 4; 197 optional ClusterId cluster_id = 5; 198 repeated Coprocessor master_coprocessors = 6; 199 optional ServerName master = 7; 200 repeated ServerName backup_masters = 8; 201 optional bool balancer_on = 9; 202 }