Skip to content

Commit

Permalink
Merge branch 'alin/replica-backtrace-endpoint' into 'master'
Browse files Browse the repository at this point in the history
feat: Replica backtrace endpoint

Implement a `/_/threads` replica endpoint that produces a backtrace of all
replica process threads.

This uses the rstack_self crate and requires the replica to start a child
process (also a replica process with a specific command-line flag). This child
process then collects the stack traces of all parent process threads, outputs
them to stdout and terminates. The (parent) replica then reads this output and
produces an HTTP response from it. 

See merge request dfinity-lab/public/ic!11928
  • Loading branch information
alin-at-dfinity committed Jun 22, 2023
2 parents fe24b10 + 9a3df6e commit a7803b4
Show file tree
Hide file tree
Showing 26 changed files with 1,550 additions and 142 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "dfinity/ic-build:5db577eac5ab2bcdbc26c754a2857d31c690b98f742c6da60fc30cb81995c601",
"image": "dfinity/ic-build:4ed8c4a9b1f77d0bdd889199be6e8722b70766035e41f694d52d43137fef7ef1",
"remoteUser": "ubuntu",
"runArgs": [
"--hostname",
Expand Down Expand Up @@ -57,4 +57,4 @@
]
}
}
}
}
1 change: 1 addition & 0 deletions .gitlab/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ go_deps.bzl @dfinity-lab/teams/idx
/rs/monitoring/adapter_metrics/ @dfinity-lab/teams/networking-team
/rs/monitoring/adapter_metrics_server/ @dfinity-lab/teams/networking-team
/rs/monitoring/adapter_metrics_service/ @dfinity-lab/teams/networking-team
/rs/monitoring/backtrace/ @dfinity-lab/teams/message-routing-owners @dfinity-lab/teams/networking-team
/rs/monitoring/onchain_observability/ @dfinity-lab/teams/networking-team
/rs/nervous_system/ @dfinity-lab/teams/nns-team
/rs/nns/ @dfinity-lab/teams/nns-team
Expand Down

0 comments on commit a7803b4

Please sign in to comment.