Skip to content

Commit

Permalink
[dbnode] Add continuous file profile with RPC endpoint (#2416)
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington authored Jul 6, 2020
1 parent c4d48d1 commit 09ff0df
Show file tree
Hide file tree
Showing 9 changed files with 4,722 additions and 2,725 deletions.
1 change: 1 addition & 0 deletions src/dbnode/generated/thrift/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ docker run --rm hello-world >/dev/null

# generate files using dockerized thrift-gen
THRIFT_IMAGE_VERSION=${THRIFT_IMAGE_VERSION:-"quay.io/m3db/thrift-gen:0.1.0"}
echo "Generating thrift files with image: $THRIFT_IMAGE_VERSION"

UID_FLAGS="-u $(id -u)"
if [[ -n "$BUILDKITE" ]]; then
Expand Down
23 changes: 23 additions & 0 deletions src/dbnode/generated/thrift/rpc.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ service Node {
NodeWriteNewSeriesLimitPerShardPerSecondResult setWriteNewSeriesLimitPerShardPerSecond(1: NodeSetWriteNewSeriesLimitPerShardPerSecondRequest req) throws (1: Error err)

// Debug endpoints
DebugProfileStartResult debugProfileStart(1: DebugProfileStartRequest req) throws (1: Error err)
DebugProfileStopResult debugProfileStop(1: DebugProfileStopRequest req) throws (1: Error err)
DebugIndexMemorySegmentsResult debugIndexMemorySegments(1: DebugIndexMemorySegmentsRequest req) throws (1: Error err)
}

Expand Down Expand Up @@ -489,6 +491,27 @@ struct Query {
7: optional FieldQuery field
}

struct DebugProfileStartRequest {
1: required string name
2: required string filePathTemplate
3: optional string interval
4: optional string duration
5: optional i64 debug
6: optional i64 conditionalNumGoroutinesGreaterThan
7: optional i64 conditionalNumGoroutinesLessThan
8: optional bool conditionalIsOverloaded
}

struct DebugProfileStartResult {
}

struct DebugProfileStopRequest {
1: required string name
}

struct DebugProfileStopResult {
}

struct DebugIndexMemorySegmentsRequest {
1: required string directory
}
Expand Down
Loading

0 comments on commit 09ff0df

Please sign in to comment.