{"id":231917,"date":"2014-08-01T14:18:03","date_gmt":"2014-08-01T10:18:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=231917"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=231917","title":{"rendered":"<span class=\"post_title\">\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 ElasticSearch \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e <a href=\"http:\/\/habrahabr.ru\/company\/likeastore\/blog\/223109\/\">\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430<\/a> c MongoDB \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430 ElasticSearch, \u043c\u044b \u0443\u0441\u043f\u0435\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043d\u0430 Elastic&#8217;\u0435, <a href=\"http:\/\/habrahabr.ru\/company\/likeastore\/blog\/222515\/\">\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/a> \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u0432 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c, \u044f \u0431\u044b\u043b \u043a\u0440\u0430\u0439\u043d\u0435 \u0434\u043e\u0432\u043e\u043b\u0435\u043d \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0435\u0439. <\/p>\n<p>  \u041d\u043e \u0432 \u0431\u043e\u0447\u043a\u0435 \u043c\u0435\u0434\u0430, \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043e\u0434\u043d\u0430 \u043b\u043e\u0436\u043a\u0430 \u0434\u0435\u0433\u0442\u044f \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0441\u044f\u0446 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, LogEntries \/ NewRelic \u0432 \u043e\u0434\u0438\u043d \u0433\u043e\u043b\u043e\u0441 \u0437\u0430\u043a\u0440\u0438\u0447\u0430\u043b\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. \u041f\u043e\u0441\u043b\u0435 \u043b\u043e\u0433\u0438\u043d\u0430 \u043d\u0430 \u0434\u0435\u0448\u0431\u043e\u0430\u0440\u0434 Digital Ocean&#8217;a, \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u0438\u0441\u044c\u043c\u043e \u043e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c UPD \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043a\u043e\u043c\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d.<br \/>  <a name=\"habracut\"><\/a><br \/>  <a href=\"https:\/\/www.digitalocean.com\/?refcode=de56d081b272\">DigitalOcean<\/a> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043b\u0438\u043d\u043a \u043d\u0430 <a href=\"https:\/\/www.digitalocean.com\/community\/questions\/my-droplet-has-been-compromised-and-is-sending-an-outgoing-flood-or-ddos-what-do-i-do\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a>, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435. \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043a\u0442\u043e \u043f\u043e\u0441\u0442\u0440\u0430\u0434\u0430\u043b \u043e\u0442 \u0430\u0442\u0430\u043a \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u044f, \u0438\u043c\u0435\u043b\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 ElasticSeach \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c 9200 \u043f\u043e\u0440\u0442\u043e\u043c. \u0417\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 Java \u0438 ES, \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0438 \u043f\u0435\u0440\u0432\u0440\u0430\u0449\u0430\u043b\u0438 \u0435\u0433\u043e \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c bot-\u0441\u0435\u0442\u0438.<\/p>\n<p>  \u041c\u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u043b\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043d\u0443\u043b\u044f, \u043d\u043e \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0442\u0430\u043a\u0438\u043c \u043d\u0430\u0438\u0432\u043d\u044b\u043c, \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0434\u0435\u0436\u043d\u043e \u0437\u0430\u0449\u0438\u0449\u0435\u043d. \u042f \u043e\u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439 \u0441\u0435\u0442\u0430\u043f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 Node.js, <a href=\"https:\/\/github.com\/progrium\/dokku\">Dokku<\/a> \/ <a href=\"https:\/\/www.docker.com\/\">Docker<\/a>, SSL.<\/p>\n<h4>\u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a?<\/h4>\n<p>  \u041d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0432\u0441\u044e \u043c\u043e\u0449\u044c ElasticSearch, \u0432 \u043d\u0435\u043c \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0437\u0430\u0449\u0438\u0442\u044b \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443. <a href=\"https:\/\/www.found.no\/foundation\/elasticsearch-security\/\">\u0422\u0443\u0442<\/a> \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443.<\/p>\n<p>  \u0417\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0438 (\u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e) \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u044d\u043b\u0430\u0441\u0442\u0438\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u2014 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f (\u043a\u0430\u043a \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435) \u0438\u0445 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0442\u044c. <\/p>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 9200 \u043f\u043e\u0440\u0442 \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0430\u043d\u043a\u0430, \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c.<\/p>\n<h4>\u041a\u0430\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043b\u0430\u043d?<\/h4>\n<p>  \u041c\u043e\u0439 \u043f\u043b\u0430\u043d \u0431\u044b\u043b \u0442\u0430\u043a\u043e\u0439 \u2014 \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u00ab\u0447\u0438\u0441\u0442\u044b\u0439\u00bb Digital Ocean \u0434\u0440\u043e\u043f\u043b\u0435\u0442, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c Elastic Search \u0432\u043d\u0443\u0442\u0440\u0438 Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 (\u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d, \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440), \u0437\u0430\u043a\u0440\u044b\u0442\u044c 9200\/9300 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438\u0437 \u0432\u043d\u0435 \u0438 \u0441\u0435\u0440\u0432\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043a \u044d\u043b\u0430\u0441\u0442\u0438\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 Node.js \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440, \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0447\u0435\u0440\u0435\u0437 \u00abshared secret\u00bb.<\/p>\n<h4>\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0434\u0440\u043e\u043f\u043b\u0435\u0442<\/h4>\n<p>  <a href=\"https:\/\/www.digitalocean.com\/?refcode=de56d081b272\">DigitalOcean<\/a> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441 Dokku\/Docker \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u043d\u0430 Ubuntu 14, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e. \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0430\u0440\u0443 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u043c\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/-OKWvxKn3Fzk\/U9tl8l8G5XI\/AAAAAAAAdKA\/Gb3CYX7p-4M\/w2108-h1256-no\/Screenshot%2B2014-08-01%2B13.02.48.png\" alt=\"image\"\/><\/p>\n<h4>\u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c ElasticSearch \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u044d\u0442\u043e Docker \u043e\u0431\u0440\u0430\u0437 \u0441 ElasticSearch. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0434\u043b\u044f Dokku \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0439\u0442\u0438 \u043f\u0443\u0442\u0435\u043c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0442\u0430\u043a \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0437 \u0434\u043b\u044f Elastic&#8217;\u0430 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432 \u0438 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0435 <a href=\"https:\/\/registry.hub.docker.com\/u\/dockerfile\/elasticsearch\/\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a> \u043f\u043e \u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e. <\/p>\n<pre><code class=\"bash\">$ docker pull docker pull dockerfile\/elasticsearch <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u0440\u0430\u0437 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f, \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 (\u0434\u0430\u0436\u0435 \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0445\u043e\u0441\u0442\u0430).<\/p>\n<pre><code class=\"bash\">$ cd \/ $ mkdir elastic <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0444\u043e\u043b\u0434\u0435\u0440\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, elasticsearch.yml. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0443 \u043c\u0435\u043d\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u0435\u043d\u044f \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0442 \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041d\u043e, \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u044b\u0448\u0435, \u043d\u0435\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/p>\n<pre><code class=\"bash\">$ nano elasticsearch.yml <\/code><\/pre>\n<p>  \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438,<\/p>\n<pre><code class=\"bash\">script.disable_dynamic: true <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440. \u042f \u0441\u043e\u0437\u0434\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0434\u043b\u044f \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437,<\/p>\n<pre><code class=\"bash\">docker run --name elastic -d -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -v \/elastic:\/data dockerfile\/elasticsearch \/elasticsearch\/bin\/elasticsearch -Des.config=\/data\/elasticsearch.yml <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430, <code>-p 127.0.0.1:9200:9200<\/code>, \u0442\u0443\u0442 \u043c\u044b \u00ab\u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u00bb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <code>9200<\/code> \u0442\u043e\u043b\u044c\u043a\u043e \u0441 <code>localhost<\/code>. \u042f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>iptables<\/code> \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f 9200\/9300 \u043f\u043e\u0440\u0442\u043e\u0432, \u0431\u0435\u0437\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043d\u043e. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043f\u043e\u043c\u043e\u0449\u0438 <a href=\"https:\/\/twitter.com\/darkproger\"><a href=\"http:\/\/habrahabr.ru\/users\/darkproger\/\" class=\"user_link\">darkproger<\/a><\/a> and <a href=\"https:\/\/twitter.com\/kkdoo\">@kkdoo<\/a> \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u043d\u0430\u0434\u043e.<\/p>\n<p>  <code>-v \/elastic:\/data<\/code> will \u043c\u0430\u043f\u043f\u0438\u0442 \u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u0440\u0435\u0440\u0430 <code>\/data<\/code> \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 <code>\/elastic<\/code>.<\/p>\n<h4>\u041f\u0440\u043e\u043a\u0441\u0438\u0440\u0443\u044e\u0449\u0438\u0439 Node.js \u0441\u0435\u0440\u0432\u0435\u0440<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u0443\u044e\u0449\u0438\u0439 Node.js \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0435\u0440\u0432\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442\/\u043a <a href=\"http:\/\/localhost\">localhost<\/a>:9200 \u0432\u043e \u0432\u043d\u0435\u0448\u0438\u0439 \u043c\u0438\u0440, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e. \u042f \u0441\u0434\u0435\u043b\u0430\u043b \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 <a href=\"https:\/\/github.com\/nodejitsu\/node-http-proxy\">http-proxy<\/a>, \u043d\u0430\u0437\u0432\u0430\u043d\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/likeastore\/elastic-proxy\">elastic-proxy<\/a>, \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0430\u043d\u043d\u044b\u043c \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/p>\n<pre><code class=\"bash\">$ git clone https:\/\/github.com\/likeastore\/elastic-proxy $ cd elastic-proxy <\/code><\/pre>\n<p>  \u0421\u0430\u043c \u043a\u043e\u0434 \u0441\u0435\u0440\u0432\u0435\u0440\u0430,<\/p>\n<pre><code class=\"javascript\">var http = require('http'); var httpProxy = require('http-proxy'); var url = require('url');  var config = require('.\/config'); var logger = require('.\/source\/utils\/logger');  var port = process.env.PORT || 3010; var proxy = httpProxy.createProxyServer();  var parseAccessToken = function (req) {   var request = url.parse(req.url, true).query;   var referer = url.parse(req.headers.referer || '', true).query;    return request.access_token || referer.access_token; };  var server = http.createServer(function (req, res) {   var accessToken = parseAccessToken(req);    logger.info('request: ' + req.url + ' accessToken: ' + accessToken + ' referer: ' + req.headers.referer);    if (!accessToken || accessToken !== config.accessToken) {       res.statusCode = 401;       return res.end('Missing access_token query parameter');   }    proxy.web(req, res, {target: config.target}); });  server.listen(port, function () {   logger.info('Likeastore Elastic-Proxy started at: ' + port); }); <\/code><\/pre>\n<p>  \u041e\u043d \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u0438 \u00ab\u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u00bb \u043b\u0438\u0448\u044c \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 access_token \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430. access_token <a href=\"https:\/\/github.com\/likeastore\/elastic-proxy\/blob\/master\/config\/production.config.js\">\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/a> \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f <code>PROXY_ACCESS_TOKEN<\/code>.<\/p>\n<p>  \u0422\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u0436\u0435 <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-use-the-dokku-one-click-digitalocean-image-to-deploy-a-python-flask-app\">\u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d<\/a> \u0434\u043b\u044f Dokku, \u0442\u043e \u0432\u0441\u0435 \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u044d\u0442\u043e \u00ab\u043f\u0443\u0448\u0443\u0442\u044c\u00bb \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0438 Dokku \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441.<\/p>\n<pre><code class=\"bash\">$ git push master production <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0434\u0435\u043f\u043b\u043e\u0439\u043c\u0435\u043d\u0442\u0430, \u0438\u0434\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430,<\/p>\n<pre><code class=\"bash\">$ dokku config proxy set PROXY_ACCESS_TOKEN=&quot;your_secret_value&quot; <\/code><\/pre>\n<p>  \u042f \u0442\u0430\u043a\u0436\u0435 \u0445\u043e\u0442\u0435\u043b, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0448\u043b\u043e \u0447\u0435\u0440\u0435\u0437 SSL, \u0441 Dokku \u044d\u0442\u043e\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c <code>server.crt<\/code> \u0438 <code>server.key<\/code> \u0432 <code>\/home\/dokku\/proxy\/tls<\/code>.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u043a\u0441\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0443\u0431\u0435\u0434\u0438\u043c\u0441\u044f \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u043a, \u043f\u0435\u0440\u0435\u0439\u0434\u044f \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"https:\/\/search.likeastore.com\/\">https:\/\/search.likeastore.com<\/a> \u2014 \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u043e\u043d \u0432\u044b\u0434\u0430\u0441\u0442:<\/p>\n<pre><code class=\"bash\">Missing access_token query parameter <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b Proxy \u0438 ElasticSeach<\/h4>\n<p>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0434\u0432\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441 Node.js \u043f\u0440\u043e\u043a\u0441\u0438, \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 ElasticSearch. \u041c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f <a href=\"https:\/\/github.com\/rlaneve\/dokku-link\">dokku-link<\/a> \u043f\u043b\u0430\u0433\u0438\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u0430\u043a \u0440\u0430\u0437, \u0442\u043e \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0433\u043e,<\/p>\n<pre><code class=\"bash\">$ cd \/var\/lib\/dokku\/plugins $ git clone https:\/\/github.com\/rlaneve\/dokku-link <\/code><\/pre>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u043a\u0441\u0438 \u0441 \u044d\u043b\u0430\u0441\u0442\u0438\u043a\u043e\u043c,<\/p>\n<pre><code class=\"bash\">$ dokku link proxy elastic <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0434\u044f \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <code>https:\/\/proxy.yourserver.com?access_token=your_secret_value,<\/code> \u043c\u044b \u0443\u0432\u0438\u0434\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 ElasticSearch,<\/p>\n<pre><code class=\"javascript\">{   status: 200,   name: &quot;Tundra&quot;,   version: {       number: &quot;1.2.1&quot;,       build_hash: &quot;6c95b759f9e7ef0f8e17f77d850da43ce8a4b364&quot;,       build_timestamp: &quot;2014-06-03T15:02:52Z&quot;,       build_snapshot: false,       lucene_version: &quot;4.8&quot;   },   tagline: &quot;You Know, for Search&quot; } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442<\/h4>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0432\u0441\u0435 \u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043e\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b access_token. \u0414\u043b\u044f Node.js \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a,<\/p>\n<pre><code class=\"javascript\">var client = elasticsearch.Client({   host: {       protocol: 'https',       host: 'search.likeastore.com',       port: 443,       query: {           access_token: process.env.ELASTIC_ACCESS_TOKEN       }   },   requestTimeout: 5000 }); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443\u0431\u0435\u0434\u0438\u0442\u0441\u044f \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e\u2026 \u0438 \u0432\u044b\u0434\u043e\u0445\u043d\u0443\u0442\u044c.<\/p>\n<h4>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h4>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0442\u0430\u043f, \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b (\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0435\u0439\u0447\u0430\u0441) \u0434\u043b\u044f <a href=\"https:\/\/likeastore.com\">Likeastore<\/a> \u043d\u0430 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0441 \u0442\u0435\u0447\u0435\u043d\u0438\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u043d\u0435\u043a\u0438\u0439 overhead, \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u043e\u0442 \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u0443\u0435\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c nginx c <code>basic-authorization<\/code>, \u0441 <code>upstream<\/code> \u0432 \u0434\u043e\u043a\u043a\u0435\u0440 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440, \u0442\u0430\u043a\u0436\u0435 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SSL. <\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435, \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0438\u0434\u0435\u0439, \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c Elastic \u0432 private network, \u0438 \u0432\u0441\u0435 \u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u043a \u043d\u0435\u043c\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 API \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0434\u0435\u0436\u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. <\/p>\n<p>  \u0417\u042b. \u042d\u0442\u043e \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u043c\u043e\u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u0438\u0437 \u043b\u0438\u0447\u043d\u043e\u0433\u043e <a href=\"http:\/\/beletsky.net\">\u0431\u043b\u043e\u0433\u0430<\/a>.      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/likeastore\/blog\/231917\/\"> http:\/\/habrahabr.ru\/company\/likeastore\/blog\/231917\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e <a href=\"http:\/\/habrahabr.ru\/company\/likeastore\/blog\/223109\/\">\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430<\/a> c MongoDB \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0430 ElasticSearch, \u043c\u044b \u0443\u0441\u043f\u0435\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043d\u0430 Elastic&#8217;\u0435, <a href=\"http:\/\/habrahabr.ru\/company\/likeastore\/blog\/222515\/\">\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/a> \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u0432 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c, \u044f \u0431\u044b\u043b \u043a\u0440\u0430\u0439\u043d\u0435 \u0434\u043e\u0432\u043e\u043b\u0435\u043d \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0435\u0439. <\/p>\n<p>  \u041d\u043e \u0432 \u0431\u043e\u0447\u043a\u0435 \u043c\u0435\u0434\u0430, \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043e\u0434\u043d\u0430 \u043b\u043e\u0436\u043a\u0430 \u0434\u0435\u0433\u0442\u044f \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0441\u044f\u0446 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, LogEntries \/ NewRelic \u0432 \u043e\u0434\u0438\u043d \u0433\u043e\u043b\u043e\u0441 \u0437\u0430\u043a\u0440\u0438\u0447\u0430\u043b\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. \u041f\u043e\u0441\u043b\u0435 \u043b\u043e\u0433\u0438\u043d\u0430 \u043d\u0430 \u0434\u0435\u0448\u0431\u043e\u0430\u0440\u0434 Digital Ocean&#8217;a, \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u0438\u0441\u044c\u043c\u043e \u043e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c UPD \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043a\u043e\u043c\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-231917","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/231917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=231917"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/231917\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}