This is an example method for adding logging categories to a JBoss Datagrid container based application.
- Install imagestream (jdg7-trace-imagestream.yml) into current namespace.
- Install buildconfig (jdg7-trace-buildconfig.yml) into current namespace.
- Perform build.
- Install a template or alter existing application deploymentconfig to use new trace enabled imagestream. Example template can be retrieved from https://github.com/jboss-openshift/application-templates/blob/ose-v1.4.8-1/datagrid/datagrid71-basic.json. For this example, change the deploymentconfig to Spec->triggers->from->"name": "jdg7-trace:1.0". Also, change the Spec->template->spec->containers->"image": "jdg7-trace". This will have the deployment use the modified JDG image.
- Create a new application using the template from #5 or redeploy your existing application.
- Verify trace level logging exists.
- Scale pods > 1.
- Verify pods have clustered by reviewing pod logs or Java console (Attributes->jgroups->channel->cluster->View)