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

To disable DEM on HTTP server in cloud environments, do the following steps:

  1. Open the deployment yaml file and set IBM_APM_DEM_ENABLED to false:

    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"
    
  2. Update the Kubernetes ConfigMap resource by using the following command:

     kubectl apply -f env-config.yaml
    
  3. 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

  1. 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.

  2. Restart the HTTP Server.

Disabling DEM plug-in for HTTP Server manually

  1. Edit the HTTP Server config file to remove the following line.

     LoadModule dem_module $HTTPD_ROOT/demmodule/mod_dem.so
    
  2. Remove the directory demmodule in the HTTP Server root directory.

  3. Edit the file /opt/IBM/DEM/DEM_ALIAS.txt to remove the following line.

     http_config_file:alias
    
  4. Restart the HTTP Server.