Hi there. In this topic we will install Elasticsearch cluster which will be contain two nodes.   1. Download Elasticsearch (further ES) deb package, install it and make ES config:   wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb apt-get install -y openjdk-7-jre && dpkg -i elasticsearch-0.90.7.deb vi /etc/elasticsearch/elasticsearch.yml cluster.name: elasticsearch_cluster node.name: "es_node-1" node.master: true node.data: true transport.tcp.port: 9300 http.port: 9200 index.number_of_replicas: 1 index.number_of_shards: 5 path.data: /var/lib/elasticsearch path.logs: /var/log/elast...
Published ago by ochirkov

Hello. In this topic I'll put explanation of ES shards and replicas. I'll find it on http://stackoverflow.com. Thank a lot in advance Luca Cavanna for explanation.   When you download elasticsearch and start it up you create an elasticsearch node which tries to join an existing cluster if available or creates a new one. Let's say you created your own new cluster with a single node, the one that you just started up. We have no data, therefore we need to create an index. When you create an index (an index is automatically created when you index the first document as well) you can define how many shards it will be composed of. If you don't spe...
Published ago by ochirkov

Python
Web development
Review Linux
Administration
Provisioning CVS
Windows AWS
Continuous Integration
NoSql Logging Web Servers FileSystems Scala
accurev ansible apach2 apache api application approaches architecture archivation argparse arguments artifactory automation awk aws backup bash batch-scripting beaver block build built-in caching call captcha cartridge case certificates cgi chain client cloud cloudformation cluster cmd coding collections command-line commands compression conditionals conversion convert cookbook copy counter cron crud css cut cygwin daemon datatype date dd debpackage decorator delattr deploy deque dict distributed-file-systems django DNS domain driver dropbox dump elasticcache elasticsearch encryption exit ext4 extra-tags failover file filename filters for form format freetds functions gerrit getattribute gid git globals glusterfs hardware hook iam indexing inheritance init install job-interview jquery ldap linux list locals logging logs logstash lookup magicmethods mail main-menu metadata metalogger mongodb moosefs mount mssql multiplatform multithreading mysql netcat nginx nosql open-ssh openldap openshift os packaging parse partition path pattern patterns permissions pid pil pip pipe playbook pool post post-commit processes production provisioning proxy putty python python-mysql recursively redirection redis register replication repr restore return review rotation scala script search selenium server setattr settings setup shipper signals singleton slots snapshot socket splunk ssh ssh-key ssl storage str string style subprocess sugar super switch syntactic syntaxhighlighter systeminfo tail tar templatetags time tls tune2fs tuple ubuntu unicode unique unix unixodbc usage usecases uuid uwsgi variable vars version vi virtualenv volume web web-server windows with_items __getattr__