Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9423

Duplicate container-info entries in kie-server-router.json file if we create containers with unique container-alias

    XMLWordPrintable

Details

    Description

      1. Configure smart router with business-central and kie-server by following steps captured in [KCS article|https://access.redhat.com/solutions/3772521]
      2.   Create first container on kie-server node with below payload:
        PUT  http://localhost:8080/kie-server/services/rest/server/containers/itorders_1.0
      {"container-alias" : "itorders_1.0","container-id" : "itorders_1.0","release-id" : {"group-id" : "itorders","artifact-id" : "itorders","version" : "1.0.0-SNAPSHOT"}}
      1.  kie-server-router.json file will have entry for this container. Take a look at attached  kie-server-router_afterFirstContainer.json
      2. Create a second container on  kie-server node with below payload
         PUT http://localhost:8080/kie-server/services/rest/server/containers/itorders_1.1
      {"container-alias" : "itorders_1.1","container-id" : "itorders_1.1","release-id" : {"group-id" : "itorders","artifact-id" : "itorders","version" : "1.0.01-SNAPSHOT"}}
      1. In the kie-server-router.json we can see 4 entries for 'itorders_1.0' container. And it will keep increasing everytime we create new container. Take a look at attached  kie-server-router_afterSecondContainer.json

      If we have configured kie-server with smart router and using unique container-alias while container creation. We can see container-info details from kie-server-router.json is duplicated everytime when we create new container. In customers environment, they have configured two kie-server's with smart router and on each kie-server they created 6 containers with unique container-alias, after this kie-server-router.json file size is 21 MB.

      Attachments

        Issue Links

          Activity

            People

              elguardian@gmail.com Enrique González Martínez
              elguardian@gmail.com Enrique González Martínez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: