Elasticsearch add datanode to existing cluster

Elasticsearch add datanode to existing cluster I have cluster with elasticnode1 — master-node elasticnode2 — datanode elasticnode3 — datanode elasticnode4 — datanode I want add new node elasticnode4 — datanode Setup same version on elasticnode5 — i setup elasticsearch.5.6.3 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.3.deb Add node to config on all nodes nano /etc/elasticsearch/elasticsearch.yml discovery.zen.ping.unicast.hosts: [«elasticnode1», «elasticnode2», «elasticnode3», «elasticnode4», […]

Читать далее…

Nginx rewrite if file not found

Nginx rewrite if file not found</h1> Если картинка не найдена в текущем локации — реврайт на запасную location /pictures { root /var/hosting/; autoindex_exact_size off; autoindex off; try_files $uri @pictures2 ; } location /pictures2 { root /var/hosting/; autoindex_exact_size off; autoindex off; } location @pictures2 { rewrite ^/pictures/(.*) https://itc-life.ru/pictures2/$1 break; } Для proxy_pass location /uploads/calls/ { proxy_pass […]

Читать далее…