Skip to content

Commit 8c762b9

Browse files
committed
[gp_stats_collector] Disable via GUC
Now gp_stats_collector is built by default in gpdb-devops [0] similarly to Cloudberry [1], so disable via GUC. [0] open-gpdb/gpdb-devops@64b1cb9 [1] apache/cloudberry@7e12a93
1 parent 8c16c8c commit 8c762b9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-gpdb.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
},
5454
{
5555
"name": "test",
56-
"extra_configure_flags": "--enable-debug-extensions --enable-tap-tests --with-gp-stats-collector"
56+
"extra_configure_flags": "--enable-debug-extensions --enable-tap-tests"
5757
}
5858
]}'
5959
# Output the matrix for GitHub Actions
@@ -1189,7 +1189,7 @@ jobs:
11891189
# set env for debian build
11901190
export BUILD_DESTINATION=/opt/greenplum-db-6
11911191
1192-
if ! su - gpadmin -c "cd ${SRC_DIR} && ./configure --with-perl --with-python --with-libxml --enable-mapreduce --with-gssapi --prefix=${BUILD_DESTINATION} --with-ldap --enable-gpperfmon --with-pam --with-openssl --disable-pxf --enable-ic-proxy --enable-orafce --without-mdblocales --with-zstd --enable-tap-tests --with-gp-stats-collector"; then
1192+
if ! su - gpadmin -c "cd ${SRC_DIR} && ./configure --with-perl --with-python --with-libxml --enable-mapreduce --with-gssapi --prefix=${BUILD_DESTINATION} --with-ldap --enable-gpperfmon --with-pam --with-openssl --disable-pxf --enable-ic-proxy --enable-orafce --without-mdblocales --with-zstd --enable-tap-tests"; then
11931193
echo "::error::Configure script failed"
11941194
exit 1
11951195
fi

gpcontrib/gp_stats_collector/src/Config.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313
static char *guc_uds_path = nullptr;
1414
static bool guc_enable_analyze = true;
1515
static bool guc_enable_cdbstats = true;
16-
static bool guc_enable_collector = true;
16+
static bool guc_enable_collector = false;
1717
static bool guc_report_nested_queries = true;
1818
static char *guc_ignored_users = nullptr;
1919
static int guc_max_text_size = 1 << 20; // in bytes (1MB)
@@ -45,7 +45,7 @@ Config::init_gucs()
4545

4646
DefineCustomBoolVariable(
4747
"gpsc.enable", "Enable metrics collector", 0LL, &guc_enable_collector,
48-
true, PGC_SUSET, GUC_NOT_IN_SAMPLE | GUC_GPDB_NEED_SYNC, 0LL, 0LL, 0LL);
48+
false, PGC_SUSET, GUC_NOT_IN_SAMPLE | GUC_GPDB_NEED_SYNC, 0LL, 0LL, 0LL);
4949

5050
DefineCustomBoolVariable(
5151
"gpsc.enable_analyze", "Collect analyze metrics in gpsc", 0LL,
@@ -65,7 +65,7 @@ Config::init_gucs()
6565
DefineCustomStringVariable("gpsc.ignored_users_list",
6666
"Make gpsc ignore queries issued by given users",
6767
0LL, &guc_ignored_users,
68-
"gpadmin,repl,gpperfmon,monitor", PGC_SUSET,
68+
"", PGC_SUSET,
6969
GUC_NOT_IN_SAMPLE | GUC_GPDB_NEED_SYNC, 0LL,
7070
assign_ignored_users_hook, 0LL);
7171

0 commit comments

Comments
 (0)