Code Monkey home page Code Monkey logo

docker-rhel-elasticsearch's People

Contributors

pavolloffay avatar ruromero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-rhel-elasticsearch's Issues

Split resource files to avoid repetition

#37 introduced new Openshift deployment file. At the moment there are two deployment file with some repetition. I am wondering whether we could split them so some parts could be reused. For example service definitions are always the same.

bootstrap tests fail

I needed to sudo sysctl -w vm.max_map_count=262144 on the OpenShift nodes running the pods, as elastic bootstrap tests failed otherwise...

Remove service account

Remove service-account it's not needed. It was used by elasticsearch-cloud-kubernetes which has been removed see #9

Do not use elasticsearch-cloud-kubernetes plugin

Set NODE_QUORUM to an appropriate value

By default template deploys two master nodes, therefore NODE_QUORUM should be set to 2. Currently it is 1 which results in log:

[2018-04-16T09:51:50,061][WARN ][o.e.d.z.ElectMasterService] [elasticsearch-0] value for setting "discovery.zen.minimum_master_nodes" is too low. This can result in data loss! Please set it to at least a quorum of master-eligible nodes (current value: [1], total number of master-eligible nodes used for publishing in this round: [2])

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#split-brain

Make image configurable

Openshift resource files could be easily used with different ES image (e.g. configuration is in configmap).

What would need to change? Use openshift template?

Basic deployment on OC fails: spec.containers[0].image: Invalid value: " ":

Hi,

I am trying to deploy this on minishift minishift v1.12.0+daa0943, openshift v3.6.1+008f2d5 and I get the following error. See the last event:

Name:			elasticsearch
Namespace:		myproject
CreationTimestamp:	Thu, 15 Feb 2018 15:44:27 +0100
Selector:		app=elasticsearch
Labels:			app=elasticsearch
Annotations:		image.openshift.io/triggers=[{
"from": {
  "kind": "ImageStreamTag",
  "name": "elasticsearch:6.2.1"
  },
  "fieldPath": "spec.template.spec.containers[?(@.name==\"elasticsearch\")].image"
}]

Replicas:	2 desired | 0 total
Pods Status:	0 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
  Labels:		app=elasticsearch
  Service Account:	elasticsearch
  Containers:
   elasticsearch:
    Image:	 
    Ports:	9200/TCP, 9300/TCP
    Limits:
      memory:	512Mi
    Requests:
      memory:	512Mi
    Environment:
      SERVICE:		elasticsearch-cluster
      LOG_LEVEL:	info
    Mounts:
      /elasticsearch/persistent from elasticsearch-persistent (rw)
  Volumes:
   elasticsearch-persistent:
    Type:	EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:	
Volume Claims:	<none>
Events:
  FirstSeen	LastSeen	Count	From		SubObjectPath	Type		Reason		Message
  ---------	--------	-----	----		-------------	--------	------		-------
  50s		12s		15	statefulset			Warning		FailedCreate	create Pod elasticsearch-0 in StatefulSet elasticsearch failed error: Pod "elasticsearch-0" is invalid: spec.containers[0].image: Invalid value: " ": must not have leading or trailing whitespace

Docker run freezes/fails on Fedora28

On fedora 28 docker docker run --rm -it --net=host registry.centos.org/rhsyseng/elasticsearch:5.5.2 freezes and fails.

sysctl vm.max_map_count returns vm.max_map_count = 262144

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.