Manuel B.
Manuel B.

Reputation: 457

Canary deployment of update to install4j application using Apache

I have a desktop app with install4j auto-updates (checked at app startup). I want to do a phased rollout of the updates.

For this I am thinking of having Apache Load Balancer serve an updated version of updates.xml to a subset of my users. The problems I am seeing:

Edit

I implemnted load balancing on the deployment folder. The workflow is like this:

Upvotes: 1

Views: 35

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 47965

If the response to a request of updates.xml sets a cookie, will the request to the media parts include that cookie?

No, cookies are not managed by install4j, you can only set a cookie in the "Request headers" property of actions like the "Check for update" and "Download file" actions.

You would have to first add a "HTTP request" action to some resource on the server and configure its "Variable name for response headers" property to extract the cookie. The "HTTP request method" property can be set to "HEAD" so you only get the headers. From that variable (a map instance), you can get the cookie variable and save it to another installer variable. This logic can be done in a "Run script" action.

Upvotes: 1

Related Questions