{"id":451,"date":"2020-02-07T20:36:48","date_gmt":"2020-02-07T17:36:48","guid":{"rendered":""},"modified":"2020-04-20T22:07:42","modified_gmt":"2020-04-20T19:07:42","slug":"load-balancing","status":"publish","type":"docs","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing","title":{"rendered":"Load balancing"},"content":{"rendered":"<p>MicroPVR contains the API method <code>is_alive<\/code>designed to monitor server congestion based on an overall load assessment, or <strong>score<\/strong>.<\/p>\n\n\n\n<p><strong>score<\/strong> it is calculated as the sum of estimates of network load, sessions and average CPU computing resource load. Each estimate is calculated as<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(N\/N_max) * 10.0<\/pre>\n\n\n\n<p>where<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">N is the current parameter value\nN_max - maximum<\/pre>\n\n\n\n<p>Also, if the maximum value of any of the parameters is set at -1, then its estimate will always be zero.<\/p>\n\n\n\n<p><code>is_alive<\/code> return <strong>falsely<\/strong> if at least one estimate exceeds the value of 8.0 (similar to the achievement of the parameter of 80% of the specified maximum value, for example, more than 800 Mbps of outgoing network stream with a maximum of 1000 Mbps) or if the value is exceeded <strong>score<\/strong> value specified in the parameter <strong>score-max-score<\/strong>.<\/p>\n\n\n\n<p>The load calculation uses the following parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>max-net-load<\/strong> \u2014 downloading outbound network stream to Mbit\/sec.<\/li><li><strong>max-sessions<\/strong> \u2014 maximum of the number of current incoming TCP sessions and the number of content requests per N seconds, where N is regulated by the parameter  <code>monitor-request-lifetime<\/code>.<\/li><li><strong>max-cpu-la1<\/strong> \u2014 The average load of computing resources, also known as the load average. This option should be distinguished from the processor load.<\/li><\/ul>\n\n\n\n<p>The current load average can be determined by the team <strong>uptime<\/strong> utilities <strong>top<\/strong>. The optimal value of this parameter can vary greatly depending on the type of load and the number of computing cores.<\/p>\n\n\n\n<p>These parameters measure the overall state of the server, not just the MicroPVR software.<\/p>","protected":false},"featured_media":0,"parent":449,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-451","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438\" \/>\n<meta property=\"og:description\" content=\"MicroPVR \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u0442\u043e\u0434 API is_alive, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0431\u0449\u0435\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 score. score \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0443\u043c\u043c\u0430 \u043e\u0446\u0435\u043d\u043e\u043a \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0442\u0438, \u0441\u0435\u0441\u0441\u0438\u0439 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 CPU. \u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043e\u0446\u0435\u043d\u043e\u043a \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a (N\/N_max) * 10.0 \u0433\u0434\u0435 N - \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 N_max - \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0422\u0430\u043a\u0436\u0435, \u0435\u0441\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing\/\" \/>\n<meta property=\"og:site_name\" content=\"Microimpuls\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-20T19:07:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing\",\"url\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing\",\"name\":\"\u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438\",\"isPartOf\":{\"@id\":\"https:\/\/micro.im\/#website\"},\"datePublished\":\"2020-02-07T17:36:48+00:00\",\"dateModified\":\"2020-04-20T19:07:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/micro.im\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MicroPVR\",\"item\":\"https:\/\/microimpuls.com\/docs\/micropvr\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\",\"item\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/micro.im\/#website\",\"url\":\"https:\/\/micro.im\/\",\"name\":\"Microimpuls\",\"description\":\"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f OTT \u0438 IPTV\",\"publisher\":{\"@id\":\"https:\/\/micro.im\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/micro.im\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/micro.im\/#organization\",\"name\":\"Microimpuls\",\"url\":\"https:\/\/micro.im\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"width\":208,\"height\":219,\"caption\":\"Microimpuls\"},\"image\":{\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Load balancing","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing\/","og_locale":"en_US","og_type":"article","og_title":"\u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438","og_description":"MicroPVR \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u0442\u043e\u0434 API is_alive, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0431\u0449\u0435\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 score. score \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0443\u043c\u043c\u0430 \u043e\u0446\u0435\u043d\u043e\u043a \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0442\u0438, \u0441\u0435\u0441\u0441\u0438\u0439 \u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 CPU. \u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043e\u0446\u0435\u043d\u043e\u043a \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a (N\/N_max) * 10.0 \u0433\u0434\u0435 N - \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 N_max - \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0422\u0430\u043a\u0436\u0435, \u0435\u0441\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 [&hellip;]","og_url":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing\/","og_site_name":"Microimpuls","article_modified_time":"2020-04-20T19:07:42+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing","url":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing","name":"Load balancing","isPartOf":{"@id":"https:\/\/micro.im\/#website"},"datePublished":"2020-02-07T17:36:48+00:00","dateModified":"2020-04-20T19:07:42+00:00","breadcrumb":{"@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/load-balancing#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/micro.im\/"},{"@type":"ListItem","position":2,"name":"MicroPVR","item":"https:\/\/microimpuls.com\/docs\/micropvr"},{"@type":"ListItem","position":3,"name":"\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435","item":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use"},{"@type":"ListItem","position":4,"name":"\u0411\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438"}]},{"@type":"WebSite","@id":"https:\/\/micro.im\/#website","url":"https:\/\/micro.im\/","name":"Microimpulses","description":"Comprehensive solutions for OTT and IPTV","publisher":{"@id":"https:\/\/micro.im\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/micro.im\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/micro.im\/#organization","name":"Microimpulses","url":"https:\/\/micro.im\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","width":208,"height":219,"caption":"Microimpuls"},"image":{"@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":5,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/451\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/451\/revisions\/493"}],"up":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/449"}],"next":[{"title":"Logistics","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/logging","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/452"}],"prev":[{"title":"Micropvr_control","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/micropvr-control","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/455"}],"wp:attachment":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/doc_tag?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}