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
7fc79b5f
Commit
7fc79b5f
authored
Jul 02, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
2769bd1b
a0c98f70
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
6 deletions
+23
-6
.gitlab/ci/frontend.gitlab-ci.yml
.gitlab/ci/frontend.gitlab-ci.yml
+1
-1
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+1
-1
changelogs/unreleased/use-pg-9-6-11-on-ci.yml
changelogs/unreleased/use-pg-9-6-11-on-ci.yml
+5
-0
config/initializers/7_prometheus_metrics.rb
config/initializers/7_prometheus_metrics.rb
+16
-4
tmp/prometheus_multiproc_dir/puma/.gitkeep
tmp/prometheus_multiproc_dir/puma/.gitkeep
+0
-0
tmp/prometheus_multiproc_dir/sidekiq/.gitkeep
tmp/prometheus_multiproc_dir/sidekiq/.gitkeep
+0
-0
tmp/prometheus_multiproc_dir/unicorn/.gitkeep
tmp/prometheus_multiproc_dir/unicorn/.gitkeep
+0
-0
No files found.
.gitlab/ci/frontend.gitlab-ci.yml
View file @
7fc79b5f
...
...
@@ -8,7 +8,7 @@
.use-pg
:
&use-pg
services
:
-
name
:
postgres:9.6
-
name
:
postgres:9.6
.11
command
:
[
"
postgres"
,
"
-c"
,
"
fsync=off"
,
"
-c"
,
"
synchronous_commit=off"
,
"
-c"
,
"
full_page_writes=off"
]
-
name
:
redis:alpine
...
...
.gitlab/ci/rails.gitlab-ci.yml
View file @
7fc79b5f
.use-pg
:
&use-pg
services
:
-
name
:
postgres:9.6
-
name
:
postgres:9.6
.11
command
:
[
"
postgres"
,
"
-c"
,
"
fsync=off"
,
"
-c"
,
"
synchronous_commit=off"
,
"
-c"
,
"
full_page_writes=off"
]
-
name
:
redis:alpine
...
...
changelogs/unreleased/use-pg-9-6-11-on-ci.yml
0 → 100644
View file @
7fc79b5f
---
title
:
Use PostgreSQL 9.6.11 in CI tests
merge_request
:
30270
author
:
Takuya Noguchi
type
:
other
config/initializers/7_prometheus_metrics.rb
View file @
7fc79b5f
require
'prometheus/client'
require
'prometheus/client/support/unicorn'
# Keep separate directories for separate processes
def
prometheus_default_multiproc_dir
return
unless
Rails
.
env
.
development?
||
Rails
.
env
.
test?
if
Sidekiq
.
server?
Rails
.
root
.
join
(
'tmp/prometheus_multiproc_dir/sidekiq'
)
elsif
defined?
(
Unicorn
::
Worker
)
Rails
.
root
.
join
(
'tmp/prometheus_multiproc_dir/unicorn'
)
elsif
defined?
(
::
Puma
)
Rails
.
root
.
join
(
'tmp/prometheus_multiproc_dir/puma'
)
else
Rails
.
root
.
join
(
'tmp/prometheus_multiproc_dir'
)
end
end
Prometheus
::
Client
.
configure
do
|
config
|
config
.
logger
=
Rails
.
logger
config
.
initial_mmap_file_size
=
4
*
1024
config
.
multiprocess_files_dir
=
ENV
[
'prometheus_multiproc_dir'
]
if
Rails
.
env
.
development?
||
Rails
.
env
.
test?
config
.
multiprocess_files_dir
||=
Rails
.
root
.
join
(
'tmp/prometheus_multiproc_dir'
)
end
config
.
multiprocess_files_dir
=
ENV
[
'prometheus_multiproc_dir'
]
||
prometheus_default_multiproc_dir
config
.
pid_provider
=
Prometheus
::
Client
::
Support
::
Unicorn
.
method
(
:worker_pid_provider
)
end
...
...
tmp/prometheus_multiproc_dir/puma/.gitkeep
0 → 100644
View file @
7fc79b5f
tmp/prometheus_multiproc_dir/sidekiq/.gitkeep
0 → 100644
View file @
7fc79b5f
tmp/prometheus_multiproc_dir/unicorn/.gitkeep
0 → 100644
View file @
7fc79b5f
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