{"id":325618,"date":"2021-06-28T15:00:41","date_gmt":"2021-06-28T15:00:41","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=325618"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=325618","title":{"rendered":"\u0423\u043a\u0440\u043e\u0449\u0430\u0435\u043c Manticoresearch"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>Manticoresearch &#8212; \u044d\u0442\u043e <a href=\"https:\/\/github.com\/manticoresoftware\/manticoresearch\" rel=\"noopener noreferrer nofollow\">Open-Source \u043f\u0440\u043e\u0435\u043a\u0442<\/a>, \u0444\u043e\u0440\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/sphinxsearch\/sphinx\" rel=\"noopener noreferrer nofollow\">sphinxsearch<\/a> \u043e\u0442 \u0410\u043d\u0434\u0440\u0435\u044f \u0410\u043a\u0441\u0435\u043d\u043e\u0432\u0430 \u0438 \u0435\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430. \u0421\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/manticoresearch.com\/2021\/03\/15\/manticore-search-3-years-after-forking-from-sphinx\/\" rel=\"noopener noreferrer nofollow\">\u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430\u043c<\/a> (\u043f\u0440\u0430\u0432\u0434\u0430 \u043e\u043d\u0438 \u043e\u0442 \u0441\u0430\u043c\u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u041c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b), &#171;\u0441\u0440\u0435\u0434\u043d\u044f\u044f \u043f\u043e \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0435&#187; \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e Elasticsearch.<\/p>\n<p>\u0412 \u0441\u0432\u043e\u0435\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438 \u043a\u0430\u043a \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0442\u044e\u043d\u0438\u0442\u044c \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u043d\u0430 \u0447\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442.<\/p>\n<p><strong>\u0418\u043d\u0434\u0435\u043a\u0441\u044b<\/strong><\/p>\n<p>\u0412 manticore (\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u043e \u043e\u0442 manticoresearch &#8212; \u0434\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0443 \u043f\u0438\u0441\u0430\u0442\u044c manticore \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b) \u0435\u0441\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0438\u043f\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432: plain, real-time, distributed \u0438 percolate. Plain \u0438\u043d\u0434\u0435\u043a\u0441\u044b &#8212; \u044d\u0442\u043e \u0442.\u043d. \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439. Real-time \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0431\u0430\u0437\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 REPLACE, \u0432\u0441\u0442\u0430\u0432\u043a\u0443, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0442.\u0447. \u0438 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 &#171;\u043e\u043d\u043b\u0430\u0439\u043d&#187;. <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0438\u043f percolate \u0438\u043d\u0434\u0435\u043a\u0441, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Real-time-\u0438\u043d\u0434\u0435\u043a\u0441\u0435. \u042d\u0442\u043e\u0442 \u0442\u0438\u043f \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>\u0427\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0442\u0438\u043f &#8212; \u044d\u0442\u043e distributed \u0438\u043d\u0434\u0435\u043a\u0441. \u041e\u043d \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u043d\u0438 \u0432 \u043a\u0430\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434 \u0441\u043e\u0431\u043e\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e plain \u0438\u043b\u0438\/\u0438 rt-\u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432.<\/p>\n<p>Plain \u0438 real-time \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u043e\u043b\u0435\u0439 \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432:<\/p>\n<p>1) id &#8212; \u044d\u0442\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435. \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0430\u0432\u0442\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f id \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 id \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u043b\u0435\u0447\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430. \u0422\u0438\u043f id \u0432\u0441\u0435\u0433\u0434\u0430 unsigned int64.<\/p>\n<p>2) \u041f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f &#8212; \u0445\u0440\u0430\u043d\u044f\u0442 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f &#8212; \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430: \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0432\u0430 (\u0442\u0435\u0440\u043c\u0430) \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435. \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f manticore \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u044f\u0445. \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439, \u0438 \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c (\u0441\u043e\u043f\u043e\u0441\u0442\u043e\u0432\u043b\u044f\u0442\u044c, \u043c\u0430\u0442\u0447\u0438\u0442\u044c) \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u044f\u043c. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u044f\u043c manticore \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u044c &#8212; weight() \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430. \u0414\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u043c. \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/docs.manticoresearch.com\/latest\/html\/searching.html\" rel=\"noopener noreferrer nofollow\">searching<\/a><\/p>\n<p>3) \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b &#8212; \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c, \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043c\u0430\u0442\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043e\u0442\u0434\u0430\u0442\u044c \u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f\u043e\u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 manticore \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 int32 \u0438 int64 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c. \u0412 manticore \u0438\u0445 \u0442\u0438\u043f\u044b \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0435\u043d\u043d\u043e &#8212; uint \u0438 bigint.<\/p>\n<\/li>\n<li>\n<p>32 \u0431\u0438\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (float)<\/p>\n<\/li>\n<li>\n<p>unix-timestamps<\/p>\n<\/li>\n<li>\n<p>\u0431\u0443\u043b\u0435\u0432\u044b\u0435 \u0442\u0438\u043f\u044b (bool)<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0440\u043e\u043a\u0438 (string)<\/p>\n<\/li>\n<li>\n<p>JSON<\/p>\n<\/li>\n<li>\n<p>multi-value &#8212; MVA, \u044d\u0442\u043e \u0442\u0438\u043f\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c 32 \u0431\u0438\u0442\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0435 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435\u0433\u0434\u0430 \u043b\u0435\u0436\u0430\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043d\u0438\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u041e\u0421 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0434\u0438\u0441\u043a\u0443. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043d\u0438\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c, \u044d\u0442\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b. \u041d\u0438\u0436\u0435 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438 \u043a\u0430\u043a \u043e\u043d\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p><strong>\u0424\u0430\u0439\u043b, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p><strong>\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f?<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spa<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0421\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b<\/p>\n<\/td>\n<td>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 mmap() <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spd<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spi<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>sph<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u043d\u0434\u0435\u043a\u0441\u0430(\u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0430)<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spk<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>kill list<\/p>\n<\/td>\n<td>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spl<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>lock \u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spm<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>row map<\/p>\n<\/td>\n<td>\n<p>mmap<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>sphi<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spt<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a docid<\/p>\n<\/td>\n<td>\n<p>mmap<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spp<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432<\/p>\n<\/td>\n<td>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spb<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b &#8212; mva, \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 json<\/p>\n<\/td>\n<td>\n<p>mmap<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Real-time \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p><strong>\u0424\u0430\u0439\u043b, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p><strong>\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f?<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>kill<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>RT kill &#8212;  \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u0447\u0435\u0440\u0435\u0437 REPLACE, \u043f\u0440\u043e\u0448\u043b\u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0438 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b\u0435 \u043a\u0430\u043a \u0431\u043b\u043e\u043a (\u0447\u0430\u043d\u043a)<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>meta<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a rt-\u0438\u043d\u0434\u0435\u043a\u0441\u0430<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>lock<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>RT lock-\u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>ram<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>\u041a\u043e\u043f\u0438\u044f \u0431\u043b\u043e\u043a\u0430 (\u0447\u0430\u043d\u043a\u0430) \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438 &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0431\u043b\u043e\u043a \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a. <\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0414\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 &#8212; seek+read \u0438 mmap.<\/p>\n<p>\u0412 seek+read \u0440\u0435\u0436\u0438\u043c\u0435 (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0446\u0438\u0439 acess_* = file, \u043e\u0431 \u043e\u043f\u0446\u0438\u044f\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0438\u0436\u0435) \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 pread(2), \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 spd \u0438 spp \u0441 \u0434\u0438\u0441\u043a\u0430. \u0414\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u0430\u043b\u043e\u0446\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0431\u0443\u0444\u0435\u0440\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0446\u0438\u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-docs\" rel=\"noopener noreferrer nofollow\">read_buffer_docs<\/a> \u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-hits\" rel=\"noopener noreferrer nofollow\">read_buffer_hits<\/a> \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f spd (\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b) \u0438 \u0447\u0442\u0435\u043d\u0438\u044f spp (\u043f\u043e\u0437\u0438\u0446\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432) \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0412\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435, \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0435\u0449\u0435 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u044b\u0437\u043e\u0432 open() \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0430. \u042d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0446\u0438\u0435\u0439 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#preopen\" rel=\"noopener noreferrer nofollow\">preopen<\/a>. \u0423 \u043c\u0435\u043d\u044f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 (\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430) \u044d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u043b\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 1, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432\u043e\u0432 open() \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 2 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441. \u041f\u043b\u043e\u0445\u043e \u044d\u0442\u043e \u0438\u043b\u0438 \u0445\u043e\u0440\u043e\u0448\u043e, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0443 \u0432\u0430\u0441, \u0438 \u043d\u0435 \u0442\u0430\u043a\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430, \u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 mmap \u0444\u0430\u0439\u043b\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c <a href=\"https:\/\/www.opennet.ru\/man.shtml?topic=mmap&amp;category=2&amp;russian=0\" rel=\"noopener noreferrer nofollow\">mmap(2)<\/a>. \u041e\u043f\u0446\u0438\u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-docs\" rel=\"noopener noreferrer nofollow\">read_buffer_docs<\/a> \u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-hits\" rel=\"noopener noreferrer nofollow\">read_buffer_hits<\/a> \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u042d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d \u043a \u0444\u0430\u0439\u043b\u0430\u043c, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u043c \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b (spa), \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c (spd), \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432 (spp) \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b &#8212; json, \u0441\u0442\u0440\u043e\u043a\u0430\u043c \u0438 mva (spb).  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0440\u0435\u0436\u0438\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u041e\u0421 \u0441\u0432\u043e\u043f\u0438\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043a \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438.  \u042d\u0442\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 <a href=\"https:\/\/www.opennet.ru\/man.shtml?topic=mlock&amp;russian=0\" rel=\"noopener noreferrer nofollow\">mlock(2)<\/a>, \u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c, \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u043f\u0440\u0438\u0432\u0435\u043b\u0438\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437 \u043f\u043e\u0434 \u0440\u0443\u0442\u0430). <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0432\u044b\u0431\u043e\u0440 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p><strong>\u0417\u0430 \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_plain_attrs<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c (\u0442\u0438\u043f\u044b bigint, bool, float, timestamp, uint).<\/p>\n<\/td>\n<td>\n<p>mmap_preread<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_blob_attrs<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a blob-\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c &#8212; json, string, mva<\/p>\n<\/td>\n<td>\n<p>mmap_preread<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_doclists<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c<\/p>\n<\/td>\n<td>\n<p>file<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_hitlists<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u043c<\/p>\n<\/td>\n<td>\n<p>file<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0430:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>file<\/p>\n<\/td>\n<td>\n<p>\u0411\u0443\u0444\u0435\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u0441 \u0434\u0438\u0441\u043a\u0430 \u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u043c pread(2). \u0420\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-docs\" rel=\"noopener noreferrer nofollow\">read_buffer_docs<\/a> \u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-hits\" rel=\"noopener noreferrer nofollow\">read_buffer_hits<\/a>.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>mmap<\/p>\n<\/td>\n<td>\n<p>\u0424\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 mmap(2), \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>mmap_preread<\/p>\n<\/td>\n<td>\n<p>\u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e mmap, \u043d\u043e \u0444\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b. \u0421\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 &#171;\u043f\u0440\u043e\u0433\u0440\u0435\u0432&#187; \u043a\u0435\u0448\u0430.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>mlock<\/p>\n<\/td>\n<td>\n<p>\u0424\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 mlock(2) \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u041e\u0421 \u0438 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043e\u0442 \u0441\u0431\u0440\u043e\u0441\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u042f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442, \u043f\u043e\u0434\u043a\u0440\u0443\u0442\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 access_doclists \u0438 access_hitlists \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0432 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 mmap. \u041d\u0438\u0436\u0435 \u0434\u0430\u043d \u0433\u0440\u0430\u0444\u0438\u043a, \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u0432 1:05PM. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4fd\/92b\/ace\/4fd92bace6ff053a05fe30435fe9e5ac.png\" width=\"937\" height=\"452\"><figcaption><\/figcaption><\/figure>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u0438\u043c\u0435\u043b\u0430 \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<ul>\n<li>\n<p>Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz 40 \u044f\u0434\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>96\u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0447\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0440\u0435\u0434\u0438\u0441\u0430 \u0438 \u0440\u0435\u0434\u0438\u0441\u0430 \u043f\u043e\u0434 \u043a\u0435\u0448 \u043f\u043e\u0440\u0442\u0430\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>43 640 037 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>16 Gb (spd) +9 Gb (spa) + 8Gb (spp) + 25 Gb (spb) ~ 60Gb \u043c\u043e\u043d\u043e\u043b\u0438\u0442\u043d\u044b\u0439 plain-\u0438\u043d\u0434\u0435\u043a\u0441  + rt-\u0438\u043d\u0434\u0435\u043a\u0441<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e! \u041d\u0430 \u043d\u0430\u0448\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d SSD \u0434\u0438\u0441\u043a, \u0447\u0442\u043e \u0438 \u043d\u0435 \u0434\u0430\u0435\u0442 \u0432\u0430\u0443-\u044d\u0444\u0444\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 HDD \u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u0442\u043e \u0441\u043c\u0435\u043b\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 access_doclists \u0438 access_hitlists \u0432 mmap, \u0430 access_plain_attrs \u0438 access_blob_attrs \u0432 mlock. \u0422\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0434\u0430\u0441\u0442, \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043f\u043e\u043d\u044f\u043b, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0442\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 mlock &#8212; &#171;\u0433\u043e\u0440\u044f\u0447\u0438\u0435&#187; \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0443\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0440\u0435\u0434\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u0430 \u041e\u0421\u044c\u044e.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0443 \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 <code>--force-preread<\/code>, \u044d\u0442\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0443 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0447\u043d\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u041a\u0430\u0436\u0434\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u041e\u0421 \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0434\u0438\u0441\u043a\u0443, \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0435\u0432 \u043a\u0435\u0448\u0430. \u0417\u0430\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u0432\u0430\u0448\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041d\u043e \u044d\u0442\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u0441\u043e\u0432\u0435\u0442 \u0434\u043b\u044f \u0442\u0435\u0445, \u0443 \u043a\u043e\u0433\u043e HDD.<\/p>\n<p><strong>Concurrency<\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0412 \u0440\u0430\u043d\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0431\u044b\u043b\u0430 \u0441\u0444\u0438\u043d\u043a\u0441\u043e\u043c, \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u043b\u0441\u044f \u0442\u0440\u0435\u0434, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\/\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0414\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043f\u043e \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438. \u0421 \u0432\u0435\u0440\u0441\u0438\u0438 2.3.1-beta \u0441\u0444\u0438\u043d\u043a\u0441\u0430 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 thread pool. \u042d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438 (\u0441\u0435\u043a\u0446\u0438\u044f searchd):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>\u041e\u043f\u0446\u0438\u044f<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>workers<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u0441\u0442\u0438. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8212; thread_pool. \u041d\u0435 \u043c\u0435\u043d\u044f\u0439\u0442\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>queue_max_length<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 thread_pool. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u044c.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>max_children<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u041a\u043e\u043b-\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0445 \u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 thread_pool \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 threads \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0443\u043b\u044e, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0432 thread_pool \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u0440\u0430\u0432\u0435\u043d \u043a\u043e\u043b-\u0432\u0443 \u044f\u0434\u0435\u0440*1.5.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>dist_threads<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u041a\u043e\u043b-\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 0, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u0440\u0435\u0436\u0438\u043c &#8212; \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 &#8212; workers = thread_pool.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0449\u0435 \u0433\u043b\u0443\u0431\u0436\u0435 \u0441\u043f\u0443\u0441\u0442\u0438\u043c\u0441\u044f \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e-\u0434\u0438\u043e\u0433\u043e\u043d\u0430\u043b\u0438, \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043d\u0430\u0434\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438 \u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u044e\u043d\u0438\u0442\u044c.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u0438\u043b\u0438 \u043f\u043e\u0439\u043c\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0438\u043b\u0438 thread pool. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0442\u0430\u0441\u043a \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0442\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0422\u0430\u0441\u043a\u0438 \u0438\u043b\u0438 \u0434\u0436\u043e\u0431\u044b \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u043f\u043e\u0442\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u041e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u043f\u0443\u043b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/04f\/50c\/649\/04f50c649da0f2acd1bf6fa33e4d0779.png\" alt=\"\u0440\u0438\u0441.1. \u0421\u0445\u0435\u043c\u0430 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\" title=\"\u0440\u0438\u0441.1. \u0421\u0445\u0435\u043c\u0430 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\" width=\"1200\" height=\"621\"><figcaption>\u0440\u0438\u0441.1. \u0421\u0445\u0435\u043c\u0430 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432<\/figcaption><\/figure>\n<p>\u0412\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043a\u043e\u0434<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a7e\/4fe\/a42\/a7e4fea4294f75f1f9fc183024f4a849.png\" alt=\"\u0420\u0438\u0441.2. CSphThdPool\" title=\"\u0420\u0438\u0441.2. CSphThdPool\" width=\"617\" height=\"455\"><figcaption>\u0420\u0438\u0441.2. CSphThdPool<\/figcaption><\/figure>\n<p>\u041f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u043b\u0430\u0441\u0441\u043e\u043c CSphThdPool. \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0432\u0441\u0435 \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0435: \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 (\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438 \u0445\u0432\u043e\u0441\u0442 m_pHead \u0438 m_pTail \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e), \u0432\u0435\u043a\u0442\u043e\u0440 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 &#8212; m_dWorkers. \u0427\u0443\u0442\u044c \u043d\u0438\u0436\u0435 &#8212; \u043f\u043e\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 &#8212; m_tStatActiveWorkers &#8212; \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f (\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u043b\u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438), \u0438 m_tStatQueuedJobs &#8212; \u043a\u043e\u043b-\u0432\u043e \u0434\u0436\u043e\u0431\u043e\u0432, \u043e\u0436\u0438\u0434\u0430\u044e\u0449\u0438\u0445 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<p>\u041a\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430? \u0412\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043c\u0435\u0442\u043e\u0434 AddJob, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0434\u0436\u043e\u0431:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c9d\/2e1\/2ae\/c9d2e12ae1c74e4986d714acd968c846.png\" alt=\"\u0420\u0438\u0441.3 AddJob\" title=\"\u0420\u0438\u0441.3 AddJob\" width=\"375\" height=\"403\"><figcaption>\u0420\u0438\u0441.3 AddJob<\/figcaption><\/figure>\n<p>\u041f\u043e\u043a\u0430 \u0447\u0442\u043e \u0442\u0443\u0442 \u0432\u0441\u0435 \u044f\u0441\u043d\u043e: \u0434\u0436\u043e\u0431 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a m_iStatQueuedJobs. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043e\u0442\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <code>SHOW STATUS; <\/code>\u0432 \u043c\u0435\u0442\u0440\u0438\u043a\u0435 work_queue_length:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fb1\/efa\/105\/fb1efa1050daf3db7e3978b599e7a227.png\" alt=\"\u0420\u0438\u0441.4 \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 SHOW STATUS;\" title=\"\u0420\u0438\u0441.4 \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 SHOW STATUS;\" width=\"417\" height=\"849\"><figcaption>\u0420\u0438\u0441.4 \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 SHOW STATUS;<\/figcaption><\/figure>\n<p>\u0414\u0436\u043e\u0431 \u0435\u0449\u0435 \u043d\u0435 \u043d\u0430\u0447\u0430\u043b \u0441\u0432\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438 \u0436\u0434\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0435\u0433\u043e &#171;\u0432\u043e\u0437\u044c\u043c\u0443\u0442&#187; \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0412 \u0438\u0434\u0435\u0430\u043b\u0435, \u043c\u0435\u0442\u0440\u0438\u043a\u0430 work_queue_length \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0432\u043d\u0430 \u043d\u0443\u043b\u044e. \u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0430\u0447\u043d\u0435\u0442 \u0440\u0430\u0441\u0442\u0438, \u0442\u043e\u0433\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u043f\u043b\u043e\u0445\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0438\u0441\u0441\u044f\u043a, \u0432\u0441\u0435 \u043f\u043e\u0442\u043e\u043a\u0438 \u0437\u0430\u043d\u044f\u0442\u044b \u0438 \u0432\u043d\u043e\u0432\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 &#171;\u0432\u0438\u0441\u0435\u0442\u044c&#187;. <\/p>\n<p>\u0417\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <a href=\"http:\/\/work_queue_length\" rel=\"noopener noreferrer nofollow\">queue_max_length<\/a>, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0430 \u0440\u0430\u0432\u043d\u0430 0, \u0447\u0442\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u044d\u0442\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443, \u0442\u043e \u043f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u043b\u0438\u043c\u0438\u0442\u0430, \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u043d\u0430\u0447\u043d\u0435\u0442 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u043d\u043e\u0432\u044c &#171;\u043f\u0440\u0438\u0431\u044b\u0432\u0448\u0438\u043c&#187; \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c \u043e\u0442\u0432\u0435\u0442 maxed out \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u0440\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043b\u0438\u0431\u043e too many requests \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 mysql. \u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c &#171;retry&#187;<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/14a\/8cc\/ba0\/14a8ccba0a621883d179b55bd3155a4c.png\" alt=\"\u0420\u0438\u0441.5. \u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u0432\u0435\u0442\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b\" title=\"\u0420\u0438\u0441.5. \u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u0432\u0435\u0442\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b\" width=\"741\" height=\"135\"><figcaption>\u0420\u0438\u0441.5. \u0421\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u0432\u0435\u0442\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b<\/figcaption><\/figure>\n<p>\u041e\u0448\u0438\u0431\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c &#171;\u0441\u0435\u0440\u0434\u0446\u0435&#187; \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0446\u0438\u043a\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0436\u043e\u0431\u0430 \u0432 \u043f\u043e\u0442\u043e\u043a\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/39d\/0d6\/b74\/39d0d6b74a1ee1c62d82fcd23f9837e1.png\" alt=\"\u0420\u0438\u0441. 6. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0436\u043e\u0431\u0430 \u0432 \u043f\u043e\u0442\u043e\u043a\u0435\" title=\"\u0420\u0438\u0441. 6. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0436\u043e\u0431\u0430 \u0432 \u043f\u043e\u0442\u043e\u043a\u0435\" width=\"622\" height=\"597\"><figcaption>\u0420\u0438\u0441. 6. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0436\u043e\u0431\u0430 \u0432 \u043f\u043e\u0442\u043e\u043a\u0435<\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 1942-1950 \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0436\u043e\u0431 \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u0434\u0430\u043b\u0435\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a m_iStatQueuedJobs (work_queue_length), \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0436\u043e\u0431 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0436\u043e\u0431 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f (\u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0434\u0436\u043e\u0431 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 flush \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u043d\u0430 \u0434\u0438\u0441\u043a), \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a m_tStatActiveWorkers &#8212; \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0434\u0436\u043e\u0431\u043e\u0432. \u042d\u0442\u043e\u0442 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u0440\u0438\u043a\u0435 SHOW STATUS; \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c workers_active (\u0441\u043c. \u0440\u0438\u0441. 4).<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e, \u0438\u043c\u0435\u0435\u043c \u0442\u0440\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u0441\u043b\u0435\u0434\u0438\u0442\u044c:<\/p>\n<p><strong>workers_active<\/strong> &#8212; \u043a\u043e\u043b-\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u0436\u043e\u0431\u043e\u0432<\/p>\n<p><strong>work_queue_length<\/strong> &#8212; \u043a\u043e\u043b-\u0432\u043e \u0434\u0436\u043e\u0431\u043e\u0432, &#171;\u0432\u0438\u0441\u044f\u0449\u0438\u0445&#187; \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/p>\n<p><strong>workers_total<\/strong> &#8212; \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b \u0438 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u043c \u043d\u0430 \u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b. \u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#max-children\" rel=\"noopener noreferrer nofollow\">max_children<\/a>.<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#dist-threads\" rel=\"noopener noreferrer nofollow\">dist_threads<\/a>, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0430 \u0440\u0430\u0432\u043d\u0430 0, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 &#171;\u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0432 \u043e\u0434\u0438\u043d \u043f\u043e\u0442\u043e\u043a&#187;. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 plain \u0438\u043d\u0434\u0435\u043a\u0441 \u0438 \u0435\u0441\u0442\u044c real-time \u0438\u043d\u0434\u0435\u043a\u0441, \u0442\u043e <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#multi-threaded-searching\" rel=\"noopener noreferrer nofollow\">\u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b<\/a> plain-\u0438\u043d\u0434\u0435\u043a\u0441 \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u0435\u0439 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c ditributed-\u0438\u043d\u0434\u0435\u043a\u0441, \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0432 dist_threads \u0440\u0430\u0432\u043d\u043e\u0435 \u0438\u043b\u0438 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b-\u0432\u0443 \u0447\u0430\u0441\u0442\u0435\u0439 distributed-\u0438\u043d\u0434\u0435\u043a\u0441\u0430. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0443 \u043c\u0435\u043d\u044f \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 rt-\u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438 \u043e\u0434\u0438\u043d plain. dist_threads \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 3, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0440\u0438 \u043f\u043e\u0442\u043e\u043a\u0430 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0442\u043e\u043a &#171;\u0441\u043c\u043e\u0442\u0440\u0438\u0442&#187; \u0432 plain \u043b\u0438\u0431\u043e \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 rt \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432. \u041f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043e \u043f\u0440\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 dist_threads \u0432 &#171;3&#187;, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u043d\u044b\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0440\u043e\u0441\u0442\u0430 \u043a\u043e\u043b-\u0432\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 plain \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c plain \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438 \u0438  \u043c\u0435\u043d\u044f\u0442\u044c dist_threads \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0412\u0440\u0435\u043c\u044f \u043f\u043e\u043a\u0430\u0436\u0435\u0442. <\/p>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong><\/p>\n<p>\u041f\u043e\u043a\u0430 \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435, \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e real-time \u0438\u043d\u0434\u0435\u043a\u0441 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043f\u043e \u043c\u0435\u0440\u0435 \u0440\u043e\u0441\u0442\u0430 \u043a\u043e\u043b-\u0432\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439. \u0423 real-time \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#rt-mem-limit\" rel=\"noopener noreferrer nofollow\">rt_mem_limit<\/a> \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0434\u0430\u0435\u0442 \u043b\u0438\u043c\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u043b\u0438\u043c\u0438\u0442\u0443, \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u0434\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a \u0432 \u0432\u0438\u0434\u0435 \u0431\u043b\u043e\u043a\u043e\u0432 (chunk). \u0415\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0439 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0431\u0440\u043e\u0441\u0430 real-time \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e, \u0442\u043e \u0442\u0430\u043a\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e, \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c searchd \u043f\u0430\u043c\u044f\u0442\u044c \u0440\u0430\u0441\u0442\u0435\u0442 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0440\u0430\u0441\u0442\u0438 \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442. <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a7b\/acb\/a4d\/a7bacba4d3dbd0be9fbe8ae01fb09b89.png\" width=\"494\" height=\"622\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#document-sphinxql_reference\/optimize_index_syntax\" rel=\"noopener noreferrer nofollow\">OPTIMIZE<\/a>, \u043e\u043d\u0430 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e rt-\u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 &#171;\u0441\u0445\u043b\u043e\u043f\u043d\u0443\u0442\u044c&#187; \u0432\u0441\u0435 \u0431\u043b\u043e\u043a\u0438 \u0432 \u043e\u0434\u0438\u043d, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f \u043e\u0431\u0449\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043d\u043e\u0440\u043c\u044b. <\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b &#8212; \u044d\u0442\u043e \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u0435 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0435\u0441\u043b\u0438 \u0434\u0436\u043e\u0431\u044b &#171;\u0443\u043f\u0435\u0440\u043b\u0438\u0441\u044c&#187; \u0432 \u0434\u0438\u0441\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u0422\u043e\u0433\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u0430\u043a \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0443 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u043b\u0438\u0431\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043d\u043e\u0434\u0443 \u0432 \u0440\u0435\u043f\u043b\u0438\u043a\u0435. \u041f\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c max_children \u0432 1.5*\u043a\u043e\u043b-\u0432\u043e \u044f\u0434\u0435\u0440 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u0443\u0447\u0442\u0438\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a. \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044f \u043f\u0440\u0438\u0448\u0435\u043b \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044f\u0432\u043d\u043e max_children \u0440\u0430\u0432\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u0443 \u044f\u0434\u0435\u0440 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435. <\/p>\n<p><strong>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u0430\u044f \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0431\u043e\u0440\u043d\u0438\u043a \u0438\u0437 \u043c\u043e\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 sphinx \u0438 \u0434\u0430\u043b\u0435\u0435 &#8212; manticoresearch. \u041f\u043e \u043c\u043e\u0435\u043c\u0443 \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u043b\u043e\u0445\u043e\u0439, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u0442\u043e \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u044f \u0441\u043e\u0431\u0435\u0440\u0443\u0441\u044c \u0438 \u043e\u043f\u0438\u0448\u0443 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 manticoresearch.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435\u0441\u044c \u043a <a href=\"https:\/\/manual.manticoresearch.com\/Introduction\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<\/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=\"https:\/\/habr.com\/ru\/post\/562448\/\"> https:\/\/habr.com\/ru\/post\/562448\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>Manticoresearch &#8212; \u044d\u0442\u043e <a href=\"https:\/\/github.com\/manticoresoftware\/manticoresearch\" rel=\"noopener noreferrer nofollow\">Open-Source \u043f\u0440\u043e\u0435\u043a\u0442<\/a>, \u0444\u043e\u0440\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/sphinxsearch\/sphinx\" rel=\"noopener noreferrer nofollow\">sphinxsearch<\/a> \u043e\u0442 \u0410\u043d\u0434\u0440\u0435\u044f \u0410\u043a\u0441\u0435\u043d\u043e\u0432\u0430 \u0438 \u0435\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u0432\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430. \u0421\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/manticoresearch.com\/2021\/03\/15\/manticore-search-3-years-after-forking-from-sphinx\/\" rel=\"noopener noreferrer nofollow\">\u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430\u043c<\/a> (\u043f\u0440\u0430\u0432\u0434\u0430 \u043e\u043d\u0438 \u043e\u0442 \u0441\u0430\u043c\u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u041c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b), &#171;\u0441\u0440\u0435\u0434\u043d\u044f\u044f \u043f\u043e \u0431\u043e\u043b\u044c\u043d\u0438\u0446\u0435&#187; \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e Elasticsearch.<\/p>\n<p>\u0412 \u0441\u0432\u043e\u0435\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438 \u043a\u0430\u043a \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0442\u044e\u043d\u0438\u0442\u044c \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u043d\u0430 \u0447\u0442\u043e \u0432\u043b\u0438\u044f\u0435\u0442.<\/p>\n<p><strong>\u0418\u043d\u0434\u0435\u043a\u0441\u044b<\/strong><\/p>\n<p>\u0412 manticore (\u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u043e \u043e\u0442 manticoresearch &#8212; \u0434\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0443 \u043f\u0438\u0441\u0430\u0442\u044c manticore \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b) \u0435\u0441\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0438\u043f\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432: plain, real-time, distributed \u0438 percolate. Plain \u0438\u043d\u0434\u0435\u043a\u0441\u044b &#8212; \u044d\u0442\u043e \u0442.\u043d. \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439. Real-time \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0431\u0430\u0437\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 REPLACE, \u0432\u0441\u0442\u0430\u0432\u043a\u0443, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0442.\u0447. \u0438 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 &#171;\u043e\u043d\u043b\u0430\u0439\u043d&#187;. <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0438\u043f percolate \u0438\u043d\u0434\u0435\u043a\u0441, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Real-time-\u0438\u043d\u0434\u0435\u043a\u0441\u0435. \u042d\u0442\u043e\u0442 \u0442\u0438\u043f \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>\u0427\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0442\u0438\u043f &#8212; \u044d\u0442\u043e distributed \u0438\u043d\u0434\u0435\u043a\u0441. \u041e\u043d \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u043d\u0438 \u0432 \u043a\u0430\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434 \u0441\u043e\u0431\u043e\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e plain \u0438\u043b\u0438\/\u0438 rt-\u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432.<\/p>\n<p>Plain \u0438 real-time \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u043e\u043b\u0435\u0439 \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432:<\/p>\n<p>1) id &#8212; \u044d\u0442\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435. \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0430\u0432\u0442\u043e\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f id \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 id \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u043b\u0435\u0447\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430. \u0422\u0438\u043f id \u0432\u0441\u0435\u0433\u0434\u0430 unsigned int64.<\/p>\n<p>2) \u041f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f &#8212; \u0445\u0440\u0430\u043d\u044f\u0442 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f &#8212; \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430: \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0432\u0430 (\u0442\u0435\u0440\u043c\u0430) \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435. \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f manticore \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u044f\u0445. \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439, \u0438 \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c (\u0441\u043e\u043f\u043e\u0441\u0442\u043e\u0432\u043b\u044f\u0442\u044c, \u043c\u0430\u0442\u0447\u0438\u0442\u044c) \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u044f\u043c. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u044f\u043c manticore \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u044c &#8212; weight() \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430. \u0414\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u043c. \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/docs.manticoresearch.com\/latest\/html\/searching.html\" rel=\"noopener noreferrer nofollow\">searching<\/a><\/p>\n<p>3) \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b &#8212; \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c, \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043c\u0430\u0442\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043e\u0442\u0434\u0430\u0442\u044c \u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f\u043e\u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 manticore \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 int32 \u0438 int64 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c. \u0412 manticore \u0438\u0445 \u0442\u0438\u043f\u044b \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0435\u043d\u043d\u043e &#8212; uint \u0438 bigint.<\/p>\n<\/li>\n<li>\n<p>32 \u0431\u0438\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (float)<\/p>\n<\/li>\n<li>\n<p>unix-timestamps<\/p>\n<\/li>\n<li>\n<p>\u0431\u0443\u043b\u0435\u0432\u044b\u0435 \u0442\u0438\u043f\u044b (bool)<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0440\u043e\u043a\u0438 (string)<\/p>\n<\/li>\n<li>\n<p>JSON<\/p>\n<\/li>\n<li>\n<p>multi-value &#8212; MVA, \u044d\u0442\u043e \u0442\u0438\u043f\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c 32 \u0431\u0438\u0442\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0435 \u0431\u0435\u0437 \u0437\u043d\u0430\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435\u0433\u0434\u0430 \u043b\u0435\u0436\u0430\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043d\u0438\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u041e\u0421 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0434\u0438\u0441\u043a\u0443. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043d\u0438\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c, \u044d\u0442\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b. \u041d\u0438\u0436\u0435 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0438 \u043a\u0430\u043a \u043e\u043d\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p><strong>\u0424\u0430\u0439\u043b, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p><strong>\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f?<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spa<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0421\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b<\/p>\n<\/td>\n<td>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 mmap() <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spd<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spi<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>sph<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u043d\u0434\u0435\u043a\u0441\u0430(\u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0430)<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spk<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>kill list<\/p>\n<\/td>\n<td>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spl<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>lock \u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spm<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>row map<\/p>\n<\/td>\n<td>\n<p>mmap<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>sphi<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spt<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a docid<\/p>\n<\/td>\n<td>\n<p>mmap<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spp<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432<\/p>\n<\/td>\n<td>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"123\" width=\"123\">\n<p>spb<\/p>\n<\/td>\n<td data-colwidth=\"300\" width=\"300\">\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b &#8212; mva, \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 json<\/p>\n<\/td>\n<td>\n<p>mmap<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>Real-time \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p><strong>\u0424\u0430\u0439\u043b, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p><strong>\u0427\u0442\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f?<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>kill<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>RT kill &#8212;  \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u0447\u0435\u0440\u0435\u0437 REPLACE, \u043f\u0440\u043e\u0448\u043b\u0438 \u043e\u0447\u0438\u0441\u0442\u043a\u0443 \u0438 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b\u0435 \u043a\u0430\u043a \u0431\u043b\u043e\u043a (\u0447\u0430\u043d\u043a)<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>meta<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a rt-\u0438\u043d\u0434\u0435\u043a\u0441\u0430<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>lock<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>RT lock-\u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p>ram<\/p>\n<\/td>\n<td data-colwidth=\"270\" width=\"270\">\n<p>\u041a\u043e\u043f\u0438\u044f \u0431\u043b\u043e\u043a\u0430 (\u0447\u0430\u043d\u043a\u0430) \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438 &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0431\u043b\u043e\u043a \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a. <\/p>\n<\/td>\n<td>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0414\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 &#8212; seek+read \u0438 mmap.<\/p>\n<p>\u0412 seek+read \u0440\u0435\u0436\u0438\u043c\u0435 (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0446\u0438\u0439 acess_* = file, \u043e\u0431 \u043e\u043f\u0446\u0438\u044f\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0438\u0436\u0435) \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 pread(2), \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 spd \u0438 spp \u0441 \u0434\u0438\u0441\u043a\u0430. \u0414\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u0430\u043b\u043e\u0446\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0431\u0443\u0444\u0435\u0440\u044b, \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0446\u0438\u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-docs\" rel=\"noopener noreferrer nofollow\">read_buffer_docs<\/a> \u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-hits\" rel=\"noopener noreferrer nofollow\">read_buffer_hits<\/a> \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f spd (\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b) \u0438 \u0447\u0442\u0435\u043d\u0438\u044f spp (\u043f\u043e\u0437\u0438\u0446\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432) \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0412\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435, \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0435\u0449\u0435 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u044b\u0437\u043e\u0432 open() \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0430. \u042d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0446\u0438\u0435\u0439 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#preopen\" rel=\"noopener noreferrer nofollow\">preopen<\/a>. \u0423 \u043c\u0435\u043d\u044f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 (\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430) \u044d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u043b\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 1, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432\u043e\u0432 open() \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 2 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441. \u041f\u043b\u043e\u0445\u043e \u044d\u0442\u043e \u0438\u043b\u0438 \u0445\u043e\u0440\u043e\u0448\u043e, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0443 \u0432\u0430\u0441, \u0438 \u043d\u0435 \u0442\u0430\u043a\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430, \u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0412 \u0440\u0435\u0436\u0438\u043c\u0435 mmap \u0444\u0430\u0439\u043b\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c <a href=\"https:\/\/www.opennet.ru\/man.shtml?topic=mmap&amp;category=2&amp;russian=0\" rel=\"noopener noreferrer nofollow\">mmap(2)<\/a>. \u041e\u043f\u0446\u0438\u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-docs\" rel=\"noopener noreferrer nofollow\">read_buffer_docs<\/a> \u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-hits\" rel=\"noopener noreferrer nofollow\">read_buffer_hits<\/a> \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u042d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d \u043a \u0444\u0430\u0439\u043b\u0430\u043c, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u043c \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b (spa), \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c (spd), \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432 (spp) \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b &#8212; json, \u0441\u0442\u0440\u043e\u043a\u0430\u043c \u0438 mva (spb).  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0440\u0435\u0436\u0438\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u041e\u0421 \u0441\u0432\u043e\u043f\u0438\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043a \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438.  \u042d\u0442\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 <a href=\"https:\/\/www.opennet.ru\/man.shtml?topic=mlock&amp;russian=0\" rel=\"noopener noreferrer nofollow\">mlock(2)<\/a>, \u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043c, \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u043f\u0440\u0438\u0432\u0435\u043b\u0438\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437 \u043f\u043e\u0434 \u0440\u0443\u0442\u0430). <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0432\u044b\u0431\u043e\u0440 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p><strong>\u0417\u0430 \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_plain_attrs<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u044b\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c (\u0442\u0438\u043f\u044b bigint, bool, float, timestamp, uint).<\/p>\n<\/td>\n<td>\n<p>mmap_preread<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_blob_attrs<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a blob-\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c &#8212; json, string, mva<\/p>\n<\/td>\n<td>\n<p>mmap_preread<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_doclists<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c<\/p>\n<\/td>\n<td>\n<p>file<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"150\" width=\"150\">\n<p>access_hitlists<\/p>\n<\/td>\n<td data-colwidth=\"435\" width=\"435\">\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u043c<\/p>\n<\/td>\n<td>\n<p>file<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0430:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>file<\/p>\n<\/td>\n<td>\n<p>\u0411\u0443\u0444\u0435\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u0441 \u0434\u0438\u0441\u043a\u0430 \u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u043c pread(2). \u0420\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-docs\" rel=\"noopener noreferrer nofollow\">read_buffer_docs<\/a> \u0438 <a href=\"https:\/\/docs.manticoresearch.com\/3.0.2\/singlehtml\/index.html#read-buffer-hits\" rel=\"noopener noreferrer nofollow\">read_buffer_hits<\/a>.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>mmap<\/p>\n<\/td>\n<td>\n<p>\u0424\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 mmap(2), \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>mmap_preread<\/p>\n<\/td>\n<td>\n<p>\u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e mmap, \u043d\u043e \u0444\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b. \u0421\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 &#171;\u043f\u0440\u043e\u0433\u0440\u0435\u0432&#187; \u043a\u0435\u0448\u0430.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"146\" width=\"146\">\n<p>mlock<\/p>\n<\/td>\n<td>\n<p>\u0424\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044b \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 mlock(2) \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u041e\u0421 \u0438 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043e\u0442 \u0441\u0431\u0440\u043e\u0441\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u042f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442, \u043f\u043e\u0434\u043a\u0440\u0443\u0442\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 access_doclists \u0438 access_hitlists \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0432 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 mmap. \u041d\u0438\u0436\u0435 \u0434\u0430\u043d \u0433\u0440\u0430\u0444\u0438\u043a, \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u0432 1:05PM. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u0438\u043c\u0435\u043b\u0430 \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<ul>\n<li>\n<p>Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz 40 \u044f\u0434\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>96\u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0447\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438 \u0440\u0435\u0434\u0438\u0441\u0430 \u0438 \u0440\u0435\u0434\u0438\u0441\u0430 \u043f\u043e\u0434 \u043a\u0435\u0448 \u043f\u043e\u0440\u0442\u0430\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>43 640 037 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>16 Gb (spd) +9 Gb (spa) + 8Gb (spp) + 25 Gb (spb) ~ 60Gb \u043c\u043e\u043d\u043e\u043b\u0438\u0442\u043d\u044b\u0439 plain-\u0438\u043d\u0434\u0435\u043a\u0441  + rt-\u0438\u043d\u0434\u0435\u043a\u0441<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e! \u041d\u0430 \u043d\u0430\u0448\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d SSD \u0434\u0438\u0441\u043a, \u0447\u0442\u043e \u0438 \u043d\u0435 \u0434\u0430\u0435\u0442 \u0432\u0430\u0443-\u044d\u0444\u0444\u0435\u043a\u0442\u0430. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 HDD \u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u0442\u043e \u0441\u043c\u0435\u043b\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 access_doclists \u0438 access_hitlists \u0432 mmap, \u0430 access_plain_attrs \u0438 access_blob_attrs \u0432 mlock. \u0422\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0434\u0430\u0441\u0442, \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043f\u043e\u043d\u044f\u043b, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u044b.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0442\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 mlock &#8212; &#171;\u0433\u043e\u0440\u044f\u0447\u0438\u0435&#187; \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0443\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0440\u0435\u0434\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u0430 \u041e\u0421\u044c\u044e.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0443 \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 <code>--force-preread<\/code>, \u044d\u0442\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0443 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0447\u043d\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u041a\u0430\u0436\u0434\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u041e\u0421 \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0434\u0438\u0441\u043a\u0443, \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0435\u0432 \u043a\u0435\u0448\u0430. \u0417\u0430\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 \u0432\u0430\u0448\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041d\u043e \u044d\u0442\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u0441\u043e\u0432\u0435\u0442 \u0434\u043b\u044f \u0442\u0435\u0445, \u0443 \u043a\u043e\u0433\u043e HDD.<\/p>\n<p><strong>Concurrency<\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u0442\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0412 \u0440\u0430\u043d\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0430 \u0431\u044b\u043b\u0430 \u0441\u0444\u0438\u043d\u043a\u0441\u043e\u043c, \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u043b\u0441\u044f \u0442\u0440\u0435\u0434, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\/\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0414\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043f\u043e \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438. \u0421 \u0432\u0435\u0440\u0441\u0438\u0438 2.3.1-beta \u0441\u0444\u0438\u043d\u043a\u0441\u0430 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 thread pool. \u042d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438 (\u0441\u0435\u043a\u0446\u0438\u044f searchd):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>\u041e\u043f\u0446\u0438\u044f<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>workers<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u0441\u0442\u0438. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8212; thread_pool. \u041d\u0435 \u043c\u0435\u043d\u044f\u0439\u0442\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>queue_max_length<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 thread_pool. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u044c.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>max_children<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u041a\u043e\u043b-\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0445 \u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 thread_pool \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 threads \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0443\u043b\u044e, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0432 thread_pool \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u0440\u0430\u0432\u0435\u043d \u043a\u043e\u043b-\u0432\u0443 \u044f\u0434\u0435\u0440*1.5.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"179\" width=\"179\">\n<p>dist_threads<\/p>\n<\/td>\n<td data-colwidth=\"414\" width=\"414\">\n<p>\u041a\u043e\u043b-\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 0, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u0440\u0435\u0436\u0438\u043c &#8212; \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 &#8212; workers = thread_pool.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0449\u0435 \u0433\u043b\u0443\u0431\u0436\u0435 \u0441\u043f\u0443\u0441\u0442\u0438\u043c\u0441\u044f \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e-\u0434\u0438\u043e\u0433\u043e\u043d\u0430\u043b\u0438, \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0432 \u043c\u0430\u043d\u0442\u0438\u043a\u043e\u0440\u0435. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043d\u0430\u0434\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438 \u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u044e\u043d\u0438\u0442\u044c.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u0438\u043b\u0438 \u043f\u043e\u0439\u043c\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0438\u043b\u0438 thread pool. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0443\u043b \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442<\/p>\n<\/div>\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-325618","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325618","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=325618"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325618\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}