{"id":300747,"date":"2020-03-25T21:00:23","date_gmt":"2020-03-25T21:00:23","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=300747"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=300747","title":{"rendered":"\u0414\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/494092\/\"><s>\u041a\u0440\u043e\u043b\u0438\u043a\u0438 \u0438 \u0443\u0434\u0430\u0432\u044b<\/s><br \/>  \u0412\u0438\u0440\u0443\u0441\u044b \u0438 \u043f\u0438\u0442\u043e\u043d\u044b<\/p>\n<p>  \u0412\u0441\u0451, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u0440\u0430\u0442\u044c!<\/p>\n<p>  \u0412 \u043f\u0440\u0435\u0441\u0441\u0435 \u043c\u0430\u0441\u0441\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0438\u0440\u0443\u0441\u044b \u2014 \u0441\u0442\u0440\u0430\u0448\u0438\u043b\u043a\u0438, \u043d\u0430\u0438\u0432, \u0431\u0435\u0441\u0441\u0442\u0440\u0430\u0448\u0438\u0435 \u0441 \u0431\u0435\u0437\u0443\u043c\u0438\u0435\u043c \u0438 \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u044b\u0435 \u0440\u043e\u0431\u043e\u0442\u0435\u043a\u0441\u0442\u044b, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0430\u043c \u043a\u0430\u043a \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0438 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044e \u0441\u0432\u044f\u0437\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0434\u0435\u043b\u0443, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0443\u0437\u043b\u044b(\u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0438 \u043b\u044e\u0434\u0438) \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u0423\u0437\u043b\u044b \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u0443\u044e\u0442\/\u0431\u043e\u043b\u0435\u044e\u0442 \u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0447\u0438\u0442\u044c, \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0435, \u043d\u0443 \u0438 \u043e\u043d\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f, \u0443\u0432\u044b \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"python\"># \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0438\u043a\u043e\u0432 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u044f \u0432 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d. # \u0418\u043b\u0438 \u0434\u043e \u0432\u044b\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438\u0437 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430 # \u0442.\u0435. \u0443\u0437\u0435\u043b \u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043d\/\u0431\u043e\u043b\u0435\u043d, \u043d\u043e \u044d\u0442\u043e \u0435\u0449\u0435 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e \u0438 \u043e\u043d \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043a\u043e\u0432 # \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0437\u0430\u0440\u0430\u0436\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 quarantine = 2  # \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u043d\u0435\u0439 \u0443\u0437\u0435\u043b \u043d\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d - \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e dead = 14  #  \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438 \u0443\u0437\u043b\u0430, \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u043e\u0433\u043e, \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0443\u0441\u0430 \u0438 \u0442.\u0434.  #  \u0437\u0430 \u043e\u0434\u0438\u043d \u0442\u0438\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0441 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u043c \u0443\u0437\u043b\u043e\u043c \u0432\u043d\u0435 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0430 infection_probably = 0.5  #  \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0447\u0438\u043d\u043a\u0438 \u0443\u0437\u043b\u0430, \u0432\u044b\u0437\u0434\u043e\u0440\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u043d\u043e\u0433\u043e, #  \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0443\u0441\u0430 \u0438 \u0442.\u0434. \u0437\u0430 \u043e\u0434\u0438\u043d \u0442\u0438\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 pr_recover = 0.5  #  \u0447\u0438\u0441\u043b\u043e \u0443\u0437\u043b\u043e\u0432\/\u0436\u0438\u0442\u0435\u043b\u0435\u0439 w_size = 1024 * 32  #  \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c, \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 max_conn \u0441\u0432\u044f\u0437\u0435\u0439 max_conn = 6  import numpy as np from tqdm import tqdm  map_conn = []  # \u0445\u0440\u0430\u043d\u0438\u043c \u0442\u0443\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0437\u043b\u0430. =0 \u0438\u0441\u043f\u0440\u0430\u0432\u0435\u043d, &gt;0  \u043d\u043e &lt;quarantine \u0442\u043e \u0437\u0430\u0440\u0430\u0437\u0435\u043d # \u0438 \u043d\u0435 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d, &gt;quarantine \u0442\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d, &gt;dead - \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d # &lt;0 - \u0432\u044b\u043b\u0435\u0447\u0435\u043d \u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0438\u043c\u043c\u0443\u043d\u0438\u0442\u0435\u0442\u043e\u043c\/\u043f\u0430\u0442\u0447 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d map_stat = np.zeros((w_size), dtype=&quot;int16&quot;)  # \u0445\u0440\u0430\u043d\u0438\u043c \u0441\u0432\u044f\u0437\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u0438. # \u0422.\u0435. map_conn[i] - \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043d\u043e\u043c\u0435\u0440\u0430\u043c\u0438 \u0443\u0437\u043b\u043e\u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0443\u0437\u043b\u043e\u043c i for i in range(w_size):     map_conn.append([])      for i in tqdm(range(w_size)):     t = np.random.randint(0, max_conn\/\/2)     tt = np.random.randint(0, w_size, (t))     for j in tt:         map_conn[i].append(j)         map_conn[j].append(i)  for i in range(w_size):     map_conn[i] = list(set(map_conn[i]))      # \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 max_conn \u0441\u0432\u044f\u0437\u0435\u0439. # \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0437\u043b\u0430 max_conn\/\/2 \u0441\u0432\u044f\u0437\u0435\u0439, # \u043d\u043e \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430.  # \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0437\u043b\u0430. \u0415\u0441\u043b\u0438 0 \u0442\u043e \u0437\u0434\u043e\u0440\u043e\u0432, \u0435\u0441\u043b\u0438 &lt;0 \u043f\u0435\u0440\u0435\u0431\u043e\u043b\u0435\u043b, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0438  # \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u043e\u043b\u0435\u0442\u044c # \u0435\u0441\u043b\u0438 &gt;0 \u0442\u043e \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\/\u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u0443\u0435\u0442, \u0435\u0441\u043b\u0438 &gt;quarantine, \u0442\u043e \u0432 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 # \u0435\u0441\u043b\u0438 &gt;dead \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0443\u0432\u044b. map_stat[:] = 0 # \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0432\u0441\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044b  map_stat[np.random.randint(1, w_size)] = 1 # \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0443\u0437\u0435\u043b \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u043b, \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438.  day = 1  print(&quot;map num &quot;, w_size)  while True:      tmp_map_conn = map_conn.copy()     tmp_map_stat = map_stat.copy() # \u0442\u0443\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0438  # \u043d\u0430\u0447\u043d\u0435\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435      for i in range(w_size): # \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u0431\u044b\u043b \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. # \u0411\u043e\u043b\u0435\u043b - \u0432\u044b\u0437\u0434\u043e\u0440\u043e\u0432\u0435\u043b\/\u043f\u0430\u0442\u0447 \u043d\u0430\u043a\u0430\u0442\u0438\u043b\u0438 - \u0438\u043c\u043c\u0443\u043d\u0438\u0442\u0435\u0442 # \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f         if tmp_map_stat[i] &lt; 0:             map_stat[i] = tmp_map_stat[i]             continue  # \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u0431\u044b\u043b \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c quarantine \u0442\u0438\u043a\u043e\u0432 \u0432\u0440\u0435\u043c\u0435\u043d\u0438\/\u0434\u043d\u0435\u0439 # \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0438\u043a\u043e\u0432 \u043d\u0430 1         if tmp_map_stat[i] &gt;= quarantine:             map_stat[i] = tmp_map_stat[i] + 1             continue  # \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u0431\u044b\u043b \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c quarantine \u0442\u0438\u043a\u043e\u0432 \u0432\u0440\u0435\u043c\u043d\u0438\/\u0434\u043d\u0435\u0439 # \u0442\u043e \u043e\u043d \u0432\u044b\u0437\u0434\u043e\u0440\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e pr_recover # \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0438\u043a\u043e\u0432 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d         if tmp_map_stat[i] &gt; 0:             if np.random.rand() &lt; pr_recover:                 map_stat[i] = -tmp_map_stat[i]             else:                 map_stat[i] = tmp_map_stat[i] + 1 # \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u0432 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 quarantine \u0442\u0438\u043a\u043e\u0432, # \u0442\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u043e \u044d\u0442\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0441\u044f \u0438 \u0443\u0437\u0435\u043b \u0438\u0437\u043e\u043b\u0438\u0440\u0443\u044e\u0442 \u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c # \u0438 \u0432\u0441\u0435 \u0435\u0433\u043e \u0441\u0432\u044f\u0437\u0438 \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442 \u0438 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043d\u0438\u043c \u0442\u043e\u0436\u0435                 if map_stat[i] &gt;= quarantine:                     for j in tmp_map_conn[i]:                         if i in map_conn[j]:                             map_conn[j].remove(i)                     map_conn[i] = []             continue  # \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u0437\u0434\u043e\u0440\u043e\u0432, \u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u043c \u043c\u043e\u0436\u0435\u0442 # \u0437\u0430\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e infection_probably         if tmp_map_stat[i] == 0:             map_stat[i] = 0             for j in tmp_map_conn[i]:                 t = np.random.rand()                 if (                     t &lt; infection_probably                     and tmp_map_stat[j] &gt; 0                     and tmp_map_stat[j] &lt; quarantine                 ):                     map_stat[i] = 1                     break  # \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043e 0, \u043e\u0442 0 \u0434\u043e quarantine # \u043e\u0442 quarantine \u0434\u043e dead      immun = np.count_nonzero(map_stat &lt; 0)     quar = np.count_nonzero((map_stat &gt;= quarantine) &amp; (map_stat &lt; dead))     dead_s = np.count_nonzero(map_stat &gt;= dead)     infl = np.sum((map_stat &gt; 0) &amp; (map_stat &lt; dead))     print(         &quot;day {0:3d} infl {1:6d} immun {2:6d} quarantine {3:6d} dead {4:6d}&quot;.format(             day, infl, immun, quar, dead_s         )     ) # \u0435\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u043d\u044b\u0445 \u043d\u0435\u0442, \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u043c     if infl == 0:         break # \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435     day += 1 <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u2014 \u043d\u0443 \u0438 \u0447\u0442\u043e, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0441\u0442\u0440\u043e\u043a \u043f\u0438\u0442\u043e\u043d\u0430! \u041c\u043d\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u044b\u043b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0438 \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0447\u0442\u043e (\u0438 \u0431\u044b\u043b \u0431\u044b \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u0438 \u0442\u043a\u043d\u0435\u0442 \u0432 \u043e\u0448\u0438\u0431\u043a\u0443): \u043f\u0440\u0438 infection_probably = 0.9 \u0438 max_conn = 4, \u0442.\u0435. \u043f\u0440\u0438 \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0439 \u0437\u0430\u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438 \u043d\u0435\u0442. \u0414\u0435\u0441\u044f\u0442\u043e\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430, \u043d\u043e \u043c\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u0410 \u0432\u043e\u0442 \u043f\u0440\u0438 infection_probably = 0.1 \u0438 max_conn = 40 \u043f\u043e\u0433\u0438\u0431\u0430\u0435\u0442 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430. \u041f\u0440\u0438\u0447\u0435\u043c \u043e\u0442 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b quarantine \u044d\u0442\u043e \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442.<\/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\/494092\/\"> https:\/\/habr.com\/ru\/post\/494092\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/494092\/\"><s>\u041a\u0440\u043e\u043b\u0438\u043a\u0438 \u0438 \u0443\u0434\u0430\u0432\u044b<\/s><br \/>  \u0412\u0438\u0440\u0443\u0441\u044b \u0438 \u043f\u0438\u0442\u043e\u043d\u044b<\/p>\n<p>  \u0412\u0441\u0451, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u0440\u0430\u0442\u044c!<\/p>\n<p>  \u0412 \u043f\u0440\u0435\u0441\u0441\u0435 \u043c\u0430\u0441\u0441\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0438\u0440\u0443\u0441\u044b \u2014 \u0441\u0442\u0440\u0430\u0448\u0438\u043b\u043a\u0438, \u043d\u0430\u0438\u0432, \u0431\u0435\u0441\u0441\u0442\u0440\u0430\u0448\u0438\u0435 \u0441 \u0431\u0435\u0437\u0443\u043c\u0438\u0435\u043c \u0438 \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u044b\u0435 \u0440\u043e\u0431\u043e\u0442\u0435\u043a\u0441\u0442\u044b, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0430\u043c \u043a\u0430\u043a \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0438 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044e \u0441\u0432\u044f\u0437\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0434\u0435\u043b\u0443, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0443\u0437\u043b\u044b(\u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0438 \u043b\u044e\u0434\u0438) \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439. \u0423\u0437\u043b\u044b \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u0443\u044e\u0442\/\u0431\u043e\u043b\u0435\u044e\u0442 \u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0447\u0438\u0442\u044c, \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0435, \u043d\u0443 \u0438 \u043e\u043d\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f, \u0443\u0432\u044b \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-300747","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300747","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=300747"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300747\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}