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
52b1da05
Commit
52b1da05
authored
Oct 25, 2019
by
Russell Dickenson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'eread/edit-job-logs-text' into 'master'
Edit job logs text See merge request gitlab-org/gitlab!18770
parents
ab5c7fb7
50952f4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
doc/administration/job_logs.md
doc/administration/job_logs.md
+9
-16
No files found.
doc/administration/job_logs.md
View file @
52b1da05
# Job logs
# Job logs
> [Renamed from
Job Traces to Job logs](https://gitlab.com/gitlab-org/gitlab/issues/29121) in 12.4
.
> [Renamed from
job traces to job logs](https://gitlab.com/gitlab-org/gitlab/issues/29121) in GitLab 12.5
.
Job logs
(traces)
are sent by GitLab Runner while it's processing a job. You can see
Job logs are sent by GitLab Runner while it's processing a job. You can see
logs in job pages, pipelines, email notifications, etc.
logs in job pages, pipelines, email notifications, etc.
## Data flow
## Data flow
...
@@ -33,9 +33,8 @@ To change the location where the job logs will be stored, follow the steps below
...
@@ -33,9 +33,8 @@ To change the location where the job logs will be stored, follow the steps below
gitlab_ci
[
'builds_directory'
]
=
'/mnt/to/gitlab-ci/builds'
gitlab_ci
[
'builds_directory'
]
=
'/mnt/to/gitlab-ci/builds'
```
```
1.
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
1.
Save the file and
[
reconfigure GitLab
](
restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the
changes to take effect.
---
**In installations from source:**
**In installations from source:**
...
@@ -48,10 +47,8 @@ To change the location where the job logs will be stored, follow the steps below
...
@@ -48,10 +47,8 @@ To change the location where the job logs will be stored, follow the steps below
builds_path
:
path/to/builds/
builds_path
:
path/to/builds/
```
```
1.
Save the file and
[
restart GitLab
][]
for the changes to take effect.
1.
Save the file and
[
restart GitLab
](
restart_gitlab.md#installations-from-source
)
for the changes
to take effect.
[
reconfigure gitlab
]:
restart_gitlab.md#omnibus-gitlab-reconfigure
"How to reconfigure Omnibus GitLab"
[
restart gitlab
]:
restart_gitlab.md#installations-from-source
"How to restart GitLab"
## Uploading logs to object storage
## Uploading logs to object storage
...
@@ -69,8 +66,8 @@ job output in the UI will be empty.
...
@@ -69,8 +66,8 @@ job output in the UI will be empty.
## New incremental logging architecture
## New incremental logging architecture
>
[Introduced][ce-18169]
in GitLab 10.4.
>
- [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/18169)
in GitLab 10.4.
>
[Announced as General availability][ce-46097]
in GitLab 11.0.
>
- [Announced as generally available](https://gitlab.com/gitlab-org/gitlab-foss/issues/46097)
in GitLab 11.0.
NOTE:
**Note:**
NOTE:
**Note:**
This feature is off by default. See below for how to
[
enable or disable
](
#enabling-incremental-logging
)
it.
This feature is off by default. See below for how to
[
enable or disable
](
#enabling-incremental-logging
)
it.
...
@@ -83,7 +80,7 @@ The data flow is the same as described in the [data flow section](#data-flow)
...
@@ -83,7 +80,7 @@ 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 incremental
with one change: _the stored path of the first two phases is different_. This incremental
log architecture stores chunks of logs in Redis and a persistent store (object storage or database) instead of
log architecture stores chunks of logs 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 a persistent store, either object storage(temporary directory) or database.
of data. Once the full chunk is sent, it is flushed to a persistent store, either object storage
(temporary directory) or database.
After a while, the data in Redis and a persitent store will be archived to
[
object storage
](
#uploading-logs-to-object-storage
)
.
After a while, the data in Redis and a persitent store will be archived to
[
object storage
](
#uploading-logs-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`
.
...
@@ -163,7 +160,3 @@ instance. If the number of jobs is 1000, 128MB (128KB * 1000) is consumed.
...
@@ -163,7 +160,3 @@ instance. If the number of jobs is 1000, 128MB (128KB * 1000) is consumed.
Also, it could pressure the database replication lag.
`INSERT`
s are generated to
Also, it could pressure the database replication lag.
`INSERT`
s are generated to
indicate that we have log chunk.
`UPDATE`
s with 128KB of data is issued once we
indicate that we have log chunk.
`UPDATE`
s with 128KB of data is issued once we
receive multiple chunks.
receive multiple chunks.
[
ce-18169
]:
https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/18169
[
ce-21193
]:
https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/21193
[
ce-46097
]:
https://gitlab.com/gitlab-org/gitlab-foss/issues/46097
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