Disabling the DEM plug-in for HTTP Server
You can disable DEM for HTTP server in both cloud and on-premises environments. Follow the steps.
-
Disabling the DEM plug-in for HTTP Server in cloud environments
-
Disabling the DEM plug-in for HTTP Server in on-premises environments
Disabling the DEM plug-in for HTTP Server in cloud environments
To disable DEM on HTTP server in cloud environments, do the following steps:
-
Open the deployment yaml file and set
IBM_APM_DEM_ENABLED
tofalse
:apiVersion: v1 kind: ConfigMap metadata: name: dem-config data: dem.conf: |2 IBM_APM_DEM_ENABLED = false JAEGER_SAMPLER_PARAM = 0.01 JAEGER_SAMPLER_TYPE = "probabilistic"
-
Update the Kubernetes ConfigMap resource by using the following command:
kubectl apply -f env-config.yaml
-
Restart the HTTP Server pods.
Disabling the DEM plug-in for HTTP Server in on-premises environments
To disable DEM on HTTP server in on-premises environments, you can use either of the following ways.
Disabling DEM plug-in for HTTP Server with the script
-
Go to the directory
/opt/IBM/DEM
, and run unconfigDEMHTTPServer.sh with parameters:-
[-hc <HTTPD_CONFIG_FILE>]: Required, such as
/opt/IBM/IHS/conf/httpd.conf
. -
[-hr <HTTPD_ROOT_DIR>]: Required, such as
/opt/IBM/IHS
.
-
-
Restart the HTTP Server.
Disabling DEM plug-in for HTTP Server manually
-
Edit the HTTP Server config file to remove the following line.
LoadModule dem_module $HTTPD_ROOT/demmodule/mod_dem.so
-
Remove the directory
demmodule
in the HTTP Server root directory. -
Edit the file
/opt/IBM/DEM/DEM_ALIAS.txt
to remove the following line.http_config_file:alias
-
Restart the HTTP Server.