mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Set "max-cache-size" in the "geoip2" system test
The named configuration files used in the "geoip2" system test cause a
rather large number of views (6-8) to be set up in each tested named
instance. Each view has its own cache.
Commit e24bc324b4
caused the RBT hash
table to be pre-allocated to a size derived from "max-cache-size", so
that it never needs to be rehashed. The size of that hash table is not
expected to be significant enough to cause memory use issues in typical
conditions even for large "max-cache-size" settings.
However, these two factors combined can cause memory exhaustion issues
in GitLab CI, where we run multiple "instances" of the test suite in
parallel on the same runner, each test suite executes multiple system
tests concurrently, and each system test may potentially start multiple
named instances at the same time. In practice, this problem currently
only seems to be affecting the "geoip2" system test, which is failing
intermittently due to named instances used by that test getting killed
by oom-killer.
Prevent the "geoip2" system test from failing intermittently by setting
"max-cache-size" in named configuration files used in that test to a low
value in order to keep memory usage at bay even with a large number of
views configured.
This commit is contained in:
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -27,6 +27,7 @@ options {
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
blackhole { blocking; };
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
@@ -22,6 +22,7 @@ options {
|
||||
recursion no;
|
||||
dnssec-validation no;
|
||||
geoip-directory "../data";
|
||||
max-cache-size 1M;
|
||||
};
|
||||
|
||||
key rndc_key {
|
||||
|
Reference in New Issue
Block a user