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
2a03142c
Commit
2a03142c
authored
May 07, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimise write lock parameters
parent
819fccd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/models/ci/build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+5
-5
No files found.
app/models/ci/build_trace_chunk.rb
View file @
2a03142c
...
...
@@ -12,9 +12,9 @@ module Ci
CHUNK_SIZE
=
128
.
kilobytes
CHUNK_REDIS_TTL
=
1
.
week
WRITE_LOCK_RETRY
=
10
0
WRITE_LOCK_SLEEP
=
1
WRITE_LOCK_TTL
=
5
.
minutes
WRITE_LOCK_RETRY
=
10
WRITE_LOCK_SLEEP
=
5
.
milisecond
WRITE_LOCK_TTL
=
1
.
minute
enum
data_store:
{
redis:
1
,
...
...
@@ -96,7 +96,7 @@ module Ci
save!
if
changed?
end
schedule_to_db
if
full
filled
?
schedule_to_db
if
full?
end
def
schedule_to_db
...
...
@@ -105,7 +105,7 @@ module Ci
Ci
::
BuildTraceChunkFlushWorker
.
perform_async
(
id
)
end
def
full
filled
?
def
full?
size
==
CHUNK_SIZE
end
...
...
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