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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
86251e74
Commit
86251e74
authored
Jul 03, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documents
parent
f930e943
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
doc/administration/job_traces.md
doc/administration/job_traces.md
+5
-5
No files found.
doc/administration/job_traces.md
View file @
86251e74
...
@@ -77,10 +77,10 @@ cloud-native, for example on Kubernetes.
...
@@ -77,10 +77,10 @@ cloud-native, for example on Kubernetes.
The data flow is the same as described in the
[
data flow section
](
#data-flow
)
The data flow is the same as described in the
[
data flow section
](
#data-flow
)
with one change: _the stored path of the first two phases is different_. This new live
with one change: _the stored path of the first two phases is different_. This new live
trace architecture stores chunks of traces in Redis and
the database
instead of
trace architecture stores chunks of traces in Redis and
a persistent store (object storage or database)
instead of
file storage. Redis is used as first-class storage, and it stores up-to 128KB
file storage. Redis is used as first-class storage, and it stores up-to 128KB
of data. Once the full chunk is sent, it is flushed
to database. After a while,
of data. Once the full chunk is sent, it is flushed
a persistent store, either object storage(temporary directory) or database.
the data in Redis and databas
e will be archived to
[
object storage
](
#uploading-traces-to-object-storage
)
.
After a while, the data in Redis and a persitent stor
e will be archived to
[
object storage
](
#uploading-traces-to-object-storage
)
.
The data are stored in the following Redis namespace:
`Gitlab::Redis::SharedState`
.
The data are stored in the following Redis namespace:
`Gitlab::Redis::SharedState`
.
...
@@ -89,11 +89,11 @@ Here is the detailed data flow:
...
@@ -89,11 +89,11 @@ Here is the detailed data flow:
1.
GitLab Runner picks a job from GitLab
1.
GitLab Runner picks a job from GitLab
1.
GitLab Runner sends a piece of trace to GitLab
1.
GitLab Runner sends a piece of trace to GitLab
1.
GitLab appends the data to Redis
1.
GitLab appends the data to Redis
1.
Once the data in Redis reach 128KB, the data is flushed to
the database
.
1.
Once the data in Redis reach 128KB, the data is flushed to
a persistent store (object storage or the database)
.
1.
The above steps are repeated until the job is finished.
1.
The above steps are repeated until the job is finished.
1.
Once the job is finished, GitLab schedules a Sidekiq worker to archive the trace.
1.
Once the job is finished, GitLab schedules a Sidekiq worker to archive the trace.
1.
The Sidekiq worker archives the trace to object storage and cleans up the trace
1.
The Sidekiq worker archives the trace to object storage and cleans up the trace
in Redis and
the database
.
in Redis and
a persistent store (object storage or the database)
.
### Enabling live trace
### Enabling live trace
...
...
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