Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dbnode] Add continuous file profile with RPC endpoint #2416

Merged
merged 8 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -488,6 +490,27 @@ struct Query {
7: optional FieldQuery field
}

struct DebugProfileStartRequest {
1: required string name
2: required string filePathTemplate
3: optional i64 intervalNanos
4: optional i64 durationNanos
5: optional i64 debug
6: optional i64 conditionalNumGoroutinesGreaterThan
7: optional i64 conditionalNumGoroutinesLessThan
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meganit: Fewer

8: optional bool conditionalIsOverloaded
}

struct DebugProfileStartResult {
}

struct DebugProfileStopRequest {
1: required string name
}

struct DebugProfileStopResult {
}

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