github.com/m3db/m3@v1.5.0/src/query/generated/proto/admin/placement.proto (about)

     1  
     2  syntax = "proto3";
     3  package admin;
     4  
     5  import "github.com/m3db/m3/src/cluster/generated/proto/placementpb/placement.proto";
     6  
     7  message PlacementInitRequest {
     8    repeated placementpb.Instance instances = 1;
     9    int32 num_shards = 2;
    10    int32 replication_factor = 3;
    11    placementpb.Options option_override = 99;
    12  }
    13  
    14  message PlacementGetResponse {
    15    placementpb.Placement placement = 1;
    16    int32 version = 2;
    17  }
    18  
    19  message PlacementAddRequest {
    20    repeated placementpb.Instance instances = 1;
    21    // By default add requests will only succeed if all instances in the placement
    22    // are AVAILABLE for all their shards. force overrides that.
    23    bool force = 2;
    24    placementpb.Options option_override = 99;
    25  }
    26  
    27  message PlacementRemoveRequest {
    28    repeated string instance_ids = 1;
    29    bool force = 2;
    30    placementpb.Options option_override = 99;
    31  }
    32  
    33  message PlacementReplaceRequest {
    34    repeated string leavingInstanceIDs = 1;
    35    repeated placementpb.Instance candidates = 2;
    36    bool force = 3;
    37    placementpb.Options option_override = 99;
    38  }
    39  
    40  message PlacementSetRequest {
    41    placementpb.Placement placement = 1;
    42    int32 version = 2;
    43    // Confirm must be set, otherwise just a dry run is executed.
    44    bool confirm = 3;
    45    // Force will skip validating the placement.
    46    bool force = 4;
    47  }
    48  
    49  message PlacementSetResponse {
    50    placementpb.Placement placement = 1;
    51    int32 version = 2;
    52    bool dryRun = 3;
    53  }