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
f79ece0a
Commit
f79ece0a
authored
Nov 01, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-11-01
parents
277a1747
eab26218
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
.gitattributes
.gitattributes
+1
-0
lib/gitlab/cluster/puma_worker_killer_initializer.rb
lib/gitlab/cluster/puma_worker_killer_initializer.rb
+5
-1
scripts/build_assets_image
scripts/build_assets_image
+1
-1
No files found.
.gitattributes
View file @
f79ece0a
VERSION merge=ours
Dangerfile gitlab-language=ruby
db/schema.rb merge=merge_db_schema
lib/gitlab/cluster/puma_worker_killer_initializer.rb
View file @
f79ece0a
...
...
@@ -11,7 +11,11 @@ module Gitlab
# Importantly RAM is for _all_workers (ie, the cluster),
# not each worker as is the case with GITLAB_UNICORN_MEMORY_MAX
worker_count
=
puma_options
[
:workers
]
||
1
config
.
ram
=
worker_count
*
puma_per_worker_max_memory_mb
# The Puma Worker Killer checks the total RAM used by both the master
# and worker processes. Bump the limits to N+1 instead of N workers
# to account for this:
# https://github.com/schneems/puma_worker_killer/blob/v0.1.0/lib/puma_worker_killer/puma_memory.rb#L57
config
.
ram
=
(
worker_count
+
1
)
*
puma_per_worker_max_memory_mb
config
.
frequency
=
20
# seconds
...
...
scripts/build_assets_image
View file @
f79ece0a
...
...
@@ -15,7 +15,7 @@ ASSETS_IMAGE_PATH=${CI_REGISTRY}/${CI_PROJECT_PATH}/${ASSETS_IMAGE_NAME}
mkdir
-p
assets_container.build/public
cp
-r
public/assets assets_container.build/public/
cp
Dockerfile.assets assets_container.build/
docker build
-t
${
ASSETS_IMAGE_PATH
}
:
${
CI_COMMIT_REF_
NAME
}
-f
assets_container.build/Dockerfile.assets assets_container.build/
docker build
-t
${
ASSETS_IMAGE_PATH
}
:
${
CI_COMMIT_REF_
SLUG
}
-f
assets_container.build/Dockerfile.assets assets_container.build/
docker login
-u
gitlab-ci-token
-p
${
CI_JOB_TOKEN
}
${
CI_REGISTRY
}
docker push
${
ASSETS_IMAGE_PATH
}
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