OpenVZ time wait bucket table overflow

Материал из poiuty wiki
Перейти к: навигация, поиск

У контейнера заканчиваются свободные tcp сокеты: /var/log/messages

Nov 22 18:17:39 kernel: [243729.870737] TCP: time wait bucket table overflow (CT106)
Nov 22 18:17:39 kernel: [243729.872146] TCP: time wait bucket table overflow (CT106)
Nov 22 18:17:39 kernel: [243729.872184] TCP: time wait bucket table overflow (CT106)
Nov 22 18:17:39 kernel: [243729.872753] TCP: time wait bucket table overflow (CT106)

Проверим лимиты

vzubc -c 106
----------------------------------------------------------------
CT 106       | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
  lockedpages|   -    -    - |12.4M 0.1% 0.1%|  16G|  16G|    -
  privvmpages|2.29G   4%   4%|2.78G   5%   5%|  48G|  48G|    -
      numproc| 208   40%  40%| 312   60%  60%| 512 | 512 |    -
    physpages|6.99G   -   43%|12.8G   -   79%|   - |  16G|    -
  vmguarpages|   -    -    - |   -    -    - |  16G|   - |    -
 oomguarpages|1.15G   7%   - |1.15G   7%   - |  16G|   - |    -
   numtcpsock|  54  0.5% 0.5%|  10K 100% 100%|  10K|  10K| 13.4K
      numfile|1.02K   1%   1%|8.78K   8%   8%| 100K| 100K|    -
    numiptent|  47   36%  18%|  48   37%  18%| 128 | 256 |    -
    swappages|   -    -    - |   -    -    - |   - |   - |    -
----------------------------------------------------------------

Увеличим количество tcp сокетов для этого контейнера.

vzctl set 106 --numtcpsock 50000 --save

Проверяем снова.

vzubc -c 106
----------------------------------------------------------------
CT 106       | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL
-------------+---------------+---------------+-----+-----+------
  lockedpages|   -    -    - |12.4M 0.1% 0.1%|  16G|  16G|    -
  privvmpages|2.29G   4%   4%|2.78G   5%   5%|  48G|  48G|    -
      numproc| 208   40%  40%| 312   60%  60%| 512 | 512 |    -
    physpages|6.99G   -   43%|12.8G   -   79%|   - |  16G|    -
  vmguarpages|   -    -    - |   -    -    - |  16G|   - |    -
 oomguarpages|1.15G   7%   - |1.15G   7%   - |  16G|   - |    -
   numtcpsock|  37  0.1% 0.1%|  10K  20%  20%|48.8K|48.8K| 13.4K
      numfile|   1K   1%   1%|8.78K   8%   8%| 100K| 100K|    -
    numiptent|  47   36%  18%|  48   37%  18%| 128 | 256 |    -
    swappages|   -    -    - |   -    -    - |   - |   - |    -
----------------------------------------------------------------