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
16cec81c
Commit
16cec81c
authored
Jan 20, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elasticsearch 5.1.x. Update requirements
parent
2523b7b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
doc/integration/elasticsearch.md
doc/integration/elasticsearch.md
+1
-6
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+2
-10
No files found.
doc/integration/elasticsearch.md
View file @
16cec81c
...
...
@@ -29,12 +29,7 @@ GitLab, or on a separate server.
## Requirements
These are the requirements needed for Elasticsearch to work:
-
GitLab 8.4+
-
Elasticsearch 2.4.x (with
[
Delete By Query Plugin
](
https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/plugins-delete-by-query.html
)
installed)
Please note that we don't support Elasticsearch 5.x at this time.
Elasticsearch 5.1.x.
## Install Elasticsearch
...
...
lib/tasks/gitlab/check.rake
View file @
16cec81c
...
...
@@ -1082,23 +1082,15 @@ namespace :gitlab do
client
=
Elasticsearch
::
Client
.
new
(
host:
ApplicationSetting
.
current
.
elasticsearch_host
,
port:
ApplicationSetting
.
current
.
elasticsearch_port
)
print
"Elasticsearch version
2.4
.x? ... "
print
"Elasticsearch version
5.1
.x? ... "
version
=
Gitlab
::
VersionInfo
.
parse
(
client
.
info
[
"version"
][
"number"
])
if
version
.
major
==
2
&&
version
.
minor
==
4
if
version
.
major
==
5
&&
version
.
minor
==
1
puts
"yes (
#{
version
}
)"
.
color
(
:green
)
else
puts
"no, you have
#{
version
}
"
.
color
(
:red
)
end
print
"Elasticsearch has plugin delete-by-query installed? ... "
if
client
.
cat
.
plugins
.
include?
(
"delete-by-query"
)
puts
"yes"
.
color
(
:green
)
else
puts
"no"
.
color
(
:red
)
end
end
def
check_gitlab_geo_node
(
node
)
...
...
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