Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Use the mzsh topo command to add the akka service as shown below.  You must specify a name for the akka service, e g akka-trace-cluster, and a value for startup-natures. The startup-natures must have the same value as the startup-natures in the SC on which you are running Conditional Trace.

    Code Block
    languagetext
    themeEclipse
    mzsh topo set -l services:custom/obj:akka '{      
          <akka service name> {
            template: "1/standard/basic"
            config {
              startup-natures: [<startup-nature>]
            }
          }
    }'

    See the example below, where the akka service is named akka-trace-cluster.

    Info
    titleExample - Adding the akka service


    Code Block
    languagetext
    themeEclipse
    mzsh topo set -l services:custom/obj:akka '{      
           akka-trace-cluster {
            template: "1/standard/basic"
            config {
              startup-natures: [ct_cluster]
            }
          }
    }'



  2. Use the mzsh topo command to create a new Service Context, which will be attached to ct_cluster. You must use the same startup-natures name that you enter for the akka service in step 1.

    Code Block
    languagetext
    themeEclipse
    mzsh topo set -l pico:sc-ct '{
           template:mz.standard-sc
             config.properties {
             mz.servicehost.port.range:"<port range>"
             mz.servicehost.natures:"<startup-natures>"
           }
    }'

    See the example below, where the service context is named sc-ct.

    Info
    titleExample - Creating the Service Context


    Code Block
    languagetext
    themeEclipse
    mzsh topo set -l pico:sc-ct '{
           template:mz.standard-sc
             config.properties {
             mz.servicehost.port.range:"7001-7050"
             mz.servicehost.natures:"ct_cluster"
           }
    }'



  3. Use the mzsh topo command to add the conditional trace service, which must be named trace. You must use the same akka service name that you enter for the akka configuration in step 2, which you must also enter as the value for the akka-cluster, shown below as <akka service name>.

    Code Block
    languagetext
    themeEclipse
    mzsh topo set -l services:custom/obj:conditional-trace '{      
          trace {
            start-after=["akka/<akka service name>"]
            template: "1/standard/basic"
            config {
              akka-cluster: "<akka service name>"
            }
          }
    }'

    See the example below, where the akka service name is akka-trace-cluster, which is also entered as the value for the akka-cluster.

    Info
    titleExample - Adding the conditional trace service


    Code Block
    languagetext
    themeEclipse
    mzsh topo set -l services:custom/obj:conditional-trace '{      
           trace {
            start-after=["akka/akka-trace-cluster"]
            template: "1/standard/basic"
            config {
              akka-cluster: "akka-trace-cluster"
            }
          }
    }'



  4. Startup the SCs and startup the conditional trace service:

    true
    Code Block
    languagetext
    themeEclipse
    $ mzsh startup platform sc-ct
    $ mzsh system start
    $ mzsh service start 
    Page Properties
    hidden


Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: