Changes for page Impact of Runtime Image Upgrades
Last modified by Erik Bakker on 2024/09/03 08:14
From version 19.1
edited by Erik Bakker
on 2024/06/25 14:07
on 2024/06/25 14:07
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Impact of Runtime ImageUpgrades1 +Impact of Runtime image upgrades - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.e bakker1 +XWiki.eMagiz - Content
-
... ... @@ -1,7 +1,7 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 -In this microlearning, we will focus on helping you to assess the impact of upgrading to anew image.2 +In this microlearning, we will focus on the helping you to assess the impact of upgrading to new buildnumbers. 3 3 4 - Ifyou have any questions, pleasecontact [[academy@emagiz.com>>mailto:academy@emagiz.com]].4 +Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 5 5 6 6 == 1. Prerequisites == 7 7 ... ... @@ -9,50 +9,57 @@ 9 9 10 10 == 2. Key concepts == 11 11 12 -With runtime image ,we mean the template usedtocreateruntime-specific(docker)images. That image is used todeploy an eMagizcontainer and contains all required software components to let the eMagizcontainer function properly. One of thecriticalrequirements is to load thenecessary libraries usedby runtime flows. A libraryin this context isa software component thatperformsaspecific, often technical function in the eMagizruntime.Theselibraries are basedon Java and manyopen-sourceframeworks,such as Spring and Artemis. Given thatthese frameworks also continuously develop,it means that fromtimeto time, we need to upgradetheversions of theseunderlying frameworks.12 +With runtime image we mean the template that is used when creating runtime specific images. That image is used to spin up docker containers and contains all required software components to let the docker container function properly. One of the key requirements is to load the required libraries that are used by flows that are part of that runtime. 13 13 14 14 == 3. Assessing the impact of runtime images == 15 15 16 -As mentioned, the runtime image is a template (i.e., blueprint), which effectively means that all specific eMagiz container images are created from this template. The template holds all the latest software updates and libraries that the integration flows require. eMagiz follows the strategy of updating these required libraries frequently to ensure vulnerabilities can be fixed quickly and new functionality is available on a needed basis. Furthermore, having a single template available allows all eMagiz containers to operate on the same software base across all eMagiz clients. This way, a single mix of libraries can be made available to the community and tested correctly and coherently. There can be no other mix of software components that behave differently (as we had in our legacy runtime architecture). 16 +As mentioned the runtime image is a template which effectively means that all specific images that are created 17 + 18 + 19 + 20 + 21 +=== 3.1 Release notes & impact assessment === 17 17 18 - Inessence,anycontainerimageconsists ofthree layers. The first (foundational)layercomprises a wide arrayof open-source code heavenly rootedinthe Spring and Java frameworks.Thesecondary layerconsists ofyourcollectionof flows that shouldrunon a container(i.e., runtime). This layeris builtupby the various flow designercomponentsusedin yourrelease'sflow versions. Thethird layer isthe configuration layerin theform of (application) properties, memoryconfiguration, andotherconfigurationelements(i.e. route, deployment location,volumes,runtimesettings).Below, you see a picture thatillustratesthis conceptinan abstract form. IneMagiz, aswellas in theimage, you see that thelayersformconstructthat facilitatesthe purpose of the object.For eMagiz, this purposeis handling data via integrations.23 +These can be found [[here>>doc:Main.Release Information.Build numbers.WebHome||target="blank"]]. Once the release notes are properly read, assess the impact. This effectively means that the key notes around the model components can be used. 19 19 20 - [[image:Main.Images.Microlearning.WebHome@advanced-lifecycle-management-impact-of-runtime-image-upgrades--runtime-layers.png]]25 +You see often a list of libraries that are updated, and when these are the only notes that means that the impact is slim to none. Then make sure to read the notes above around the model components touched. These will help to asses the impact. Some model components have additional capability, and some have a limited capability or a fix. 21 21 22 -=== 3.1 Overal deployment strategy === 27 +**Example** 28 +Flows containing a Jetty server (support object), primarily used to host REST and SOAP web services, require some special attention when deploying because not all combinations of build number 50 (and higher) and 48 (and lower) flows will work correctly: 23 23 24 -When the prepare release step is triggered, the runtime image will create specific runtime images to deploy eMagiz containers. When we release a new runtime (base) image, eMagiz will trigger the generation of a new container image for each runtime (i.e., container) captured within the first release created **after** we release our new runtime image. For more information on when eMagiz creates a new container image, please check out this [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-deploy-execute-deployment-plan-gen3.WebHome||target="blank"]]. 30 +* After installing any build 50 (or higher) flow, build 48 (or lower) flows containing a Jetty server on the same runtime cannot be started anymore. If it is really necessary to still install/start a build 48 (or lower) Jetty server flow: uninstall all build 50 (or higher) flows on that runtime first, then install/start the build 48 (or lower) Jetty server flow, and finally re-install the build 50 (or higher) flows. 31 +* When deploying a flow containing a Jetty server, the infra flow of that runtime must have a matching build number, that is: if the the Jetty server flow is build 48 (or lower) the infra needs to be build 48 (or lower) as well, if the Jetty server flow is build 50 (or higher) the infra needs to be 50 (or higher) as well. 25 25 26 -=== 3.2 Release notes & impact assessment === 27 - 28 -Release notes for runtime images can be found [[here>>doc:Main.Release Information.Runtime Images.WebHome||target="blank"]]. Please consult these regularly or at the moment when unexpected behavior is observed. In the strategy of eMagiz, very frequent updates are made to the Runtime Image so that the delta in the software components is incremental. In this way, the risk of unwanted side effects is minimalized. The risk is also mitigated by all flows inside the runtime adhering to the same version of libraries inside the docker image. All this means that the release notes are relevant to understand an issue better. 33 +**Impact**: review the runtimes that have flows with a Jetty component and ensure that matching buildnumbers are inside these runtimes for all flows. 29 29 30 - {{info}}Shouldan issue occur, we want to be informed of this to take action.If it turns out that a rollback is needed to an earlier image, you can facilitate this via our"disaster recovery" mechanismdescribedbelow.{{/info}}35 +=== 3.2 Upgrade === 31 31 32 - ===3.3Approach===37 +Use the designed options in eMagiz to upgrade the flows to the new buildnumber. See the relevant microlearnings for that. 33 33 34 - Westronglyadviseupdating your Test and Acceptance environment first before moving to Production. This willavoid potentialproblems appearing in a Production environment before any other environment. To betteranticipate when a new runtime imagewill be released,we will inform our customer base along the following timelines.39 +=== 3.3 Functional changes === 35 35 36 -* High impact 37 -** As part of the release notes of **three** releases ahead of us releasing the new runtime image. 38 -** This information is shared with the whole community upfront through this release notes. 39 -* Medium impact 40 -** As part of the release notes of **one** release ahead of us releasing the new runtime image. 41 -** This information is shared with the whole community upfront through this release notes. 42 -* Low impact 43 -** As part of the release notes for the current release, 44 -** This information is shared upfront with key users. 41 +Before an environment is updates to the flows with the latest releases, it is adviced to first check which flows have functional changes. These flows need to be tested and put into production first so that you can isolate issues in case they occur. Once these flows are tested and live, only then move the flows with the new buildnumbers from test to production. 45 45 46 -=== 3. 3Disasterrecoveryruntimes===43 +=== 3.4 Approach === 47 47 48 -I n particularcases,a runtime may not function properlyafter aspecific release is done. Thatmeansthe flowsin that runtime are not 100% compatiblewiththeruntimeimage usedtocreatethecontainerimages.As aresult,actionis neededateMagizto updatetheruntime imageor assistyou as aclient inresolvingthe issue within the constraintsof the newruntime image.This situation is expected to be very exceptional.WeateMagiz needtobeinformedif you encounter suchaituation. As part of our regularprocess and agreements withour partners andclients,weneeda registered ticket from our Support department to act upon this.45 +It is usually best to update the test and acceptance environment first and leave that running for a certain grace period. So that in case potential issues can be fixed still. 49 49 50 -== 4. Keytakeaways==47 +== 4. Assignment == 51 51 52 -* A runtime image is the foundational layer of a container image. 53 -* Based on the assessed impact, we communicate sooner or later. 54 -* Read the release notes for runtime images carefully to assess the impact. 49 +Take a look at the release notes in the eMagiz Portal to ensure you know where to look. 55 55 56 -== 5. SuggestedAdditional Readings ==51 +== 5. Key takeaways == 57 57 58 -If you are interested in this topic and want more information on it, please read the [[release notes>>doc:Main.Release Information.Runtime Images.WebHome||target="blank"]] provided by eMagiz.)))((({{toc/}}))){{/container}}{{/container}} 53 +* Keep as close to the latest buildnumber as possible for the entire environment 54 +* The best option is to have the entire environment run on the same buildnumber 55 +* A mix of buildnumbers in a runtime is not a good plan - conflicting behaviors may occur. 56 +* Read the release notes for builnumbers carefully to assess the impact - in case the impact is minimal proceed with the upgrade 57 +* Make the buildnumber upgrades planable so the release schedule takes these actions into account. 58 + 59 +== 6. Suggested Additional Readings == 60 + 61 +If you are interested in this topic and want more information on it, please read the release notes provided by eMagiz 62 + 63 +== 7. Silent demonstration video == 64 + 65 +There is no video available as this is more a theoretical microlearning.)))((({{toc/}}))){{/container}}{{/container}}