Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b990f975
Commit
b990f975
authored
Aug 20, 2020
by
Igor
Committed by
Evan Read
Aug 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document Gitaly passing CORRELATION_ID to git processes
parent
b51b1083
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+18
-0
No files found.
doc/administration/gitaly/index.md
View file @
b990f975
...
...
@@ -1072,6 +1072,24 @@ You can run a gRPC trace with:
sudo
GRPC_TRACE
=
all
GRPC_VERBOSITY
=
DEBUG gitlab-rake gitlab:gitaly:check
```
### Correlating Git processes with RPCs
Sometimes you need to find out which Gitaly RPC created a particular Git process.
One method for doing this is via
`DEBUG`
logging. However, this needs to be enabled
ahead of time and the logs produced are quite verbose.
A lightweight method for doing this correlation is by inspecting the environment
of the Git process (using its
`PID`
) and looking at the
`CORRELATION_ID`
variable:
```
shell
PID
=
<Git process ID>
sudo cat
/proc/
$PID
/environ |
tr
'\0'
'\n'
|
grep
^CORRELATION_ID
=
```
Please note that this method is not reliable for
`git cat-file`
processes because Gitaly
internally pools and re-uses those across RPCs.
### Observing `gitaly-ruby` traffic
[
`gitaly-ruby`
](
#gitaly-ruby
)
is an internal implementation detail of Gitaly,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment