Changes for page Failover - Deploy Possibilities
Last modified by Erik Bakker on 2024/09/27 14:07
From version 28.1
edited by Danniar Firdausy
on 2024/09/25 10:59
on 2024/09/25 10:59
Change comment:
There is no comment for this version
To version 28.19
edited by Danniar Firdausy
on 2024/09/25 13:27
on 2024/09/25 13:27
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Setting up Failover - DesignPhase1 +Setting up Failover - Create Phase - Content
-
... ... @@ -1,105 +1,41 @@ 1 1 {{container}} 2 2 {{container layoutStyle="columns"}} 3 3 ((( 4 -eMagiz flows, or more specifically, the flow's inbound component(s), can be grouped. The effect is that you can later in [[Deploy>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Grouping and Failover.intermediate-grouping-and-failover-deploy-possibilities.WebHome||target="blank"]], control them as one entity. This is mainly beneficial when faced with substantial maintenance or outage of systems connected to your eMagiz model. 5 5 6 - Buildingonthisfunctionality,you canevenconfigurethegrouptorunin an active/passivefailover mode whenyou activate themultipleruntimesoption onyourruntime,andeachparateruntimeis deployedon another machine.Thefailover functionality isnotonlyrelevant incasesofservermaintenance.It canalsoassistuwhenyou wanttoexchange data with asystemthat allowsonlyoneactiveconnection.Shouldthis connectionbebusiness-critical,youcan usehisfailover functionalitytocreateapassivefailoversituation thatwill takeover whenthe activeconnection breaksdown (regardlessofthereason).5 +In the previous microlearning, we discussed what situation that failover mode will be beneficial as well as the settings that need to be configured in the Design phase. Next to that, we also discussed that setting up this failover functionality in your model requires you to first execute some steps in your Design, Create, and lastly Deploy phase. Picking up from what we have discussed previously in the Design phase, in this microlearning, we will focus on configuring your setup in the Create phase if you want to activate the active/passive failover configuration. 7 7 8 -In this microlearning, we will focus on configuring the flow to group various inbound components and configure the flow (including the infra) if you want to activate the active/passive failover configuration. 9 - 10 10 Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 11 11 12 12 == 1. Prerequisites == 13 13 14 -* Intermediate knowledge of the eMagiz platform 11 +* Intermediate knowledge of the eMagiz platform. 15 15 16 16 == 2. Key concepts == 17 17 18 -This microlearning describes howoconfigure (partsof)yourflow(s)tosetupthegroupingand,ifneeded, the failover functionality on theflowlevel. The grouping functionality is relevant when faced with maintenance and outages of systems connected to your model. The failover functionality assists in that case and allows you to have a fallback option on an active connection.15 +This microlearning describes what configuration that you will have to do in the Create phase, based on what you have configured in the Design phase, to enable failover for systems connecting with your model. The grouping and failover functionality is relevant when faced with maintenance and outages of systems connected to your model. The failover functionality assists in that case and allows you to have a fallback option on an active connection. 19 19 20 -== 3. FlowConfiguration ==17 +== 3. Create Phase Configuration == 21 21 22 -== 3.1 Grouping ==19 +== 3.1 Settings == 23 23 24 - To configure grouping,weneedto open theflow designerof theflowinCreate. We wanttoeditand enter"StartEditing"mode.On theinbound component(s)in theflow, wenowhavean "Advanced" tabthat allowsyou to configurethegroupinginformation.21 +After finishing up your configuration in the Design phase, you can then go to the Settings page on the top right corner of the Create phase. There, 25 25 26 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flo w-configuration-starting-point.png]]23 +[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-setting-up-failover-design-phase-solution-design.png]] 27 27 28 -{{info}} Note thatthe optionsaboveareavailablein all inbound components.Theonechosenaboveis simplyanillustrationofhowtoconfigure.{{/info}}25 +{{info}}Systems with the failover option enabled must have "Number of runtimes" exactly 2 and must be placed on an external machine in the Architecture panel.{{/info}} 29 29 30 - Onceonthe"Advanced" tab, you must define thegroupname.You can determine the group nameifthis is thefirst flow youchange. In all subsequentflows, youwant to add to the same group, you must usethe **same** group name.27 +== 3.2 Design Architecture == 31 31 32 - [[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-define-group-name.png]]29 +Once the previous step is done, the next step is to configure your Design>Architecture. Here, you first need to "Start Editing" and then press "Apply settings" on your bottom left corner. Afterward, you will be faced with a pop-up page informing you that failover will be enabled on the system connector containers that you have previously toggled in Design>Solution Design (see the screenshot below as an example). 33 33 34 -Once filled in, ensure that the auto startup configuration is set to Yes to ensure that, on default, all flows within the group start up when the container is started. 31 +[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-setting-up-failover-design-phase-design-architecture.png]] 32 + 33 +Once you applied the changes, then your Design>Architecture in that environment, will get new router containers placed in your external machines (see the screenshot below as an example). These router containers are responsible for ... . 35 35 36 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover- flow-configuration-define-auto-startup.png]]35 +[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-setting-up-failover-design-phase-routers.png]] 37 37 38 -W ithin a runtimecontext,youcanadd multiplegroupsthatcanbe stoppedandstartedseparately from each other.Inthisexample,we wouldalso liketo havea groupforourexitsto stop themiftheconnecting systemundergoesmaintenanceoris downtostore themessagesin thequeue.37 +When you have done that and satisfied with your landscape configuration, then you are finished in the Design phase and can proceed to the next configuration in the Create phase. 39 39 40 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-starting-point-exit.png]] 41 - 42 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-other-group.png]] 43 - 44 -== 3.2 Failover == 45 - 46 -If you want to expand the grouping functionality to include an active/passive failover component, you need to change the settings on the inbound component. Apart from specifying the group name, you need to configure the auto-startup option on "No" so the failover configuration can take the correct actions in all situations. 47 - 48 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-failover-example-group.png]] 49 - 50 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-failover-other-group.png]] 51 - 52 -{{info}}Note that each group within a single runtime that you want to treat differently needs to have a **unique** name.{{/info}} 53 - 54 -== 3.3 Failover Infra == 55 - 56 -The configuration of the infra flow of the runtime for which you want to configure the failover is detailed and only works if you configure all support objects correctly. Although we explain the various steps in the documentation, we advise utilizing the [[store item>>doc:Main.eMagiz Store.Accelerators.Active-Passive Failover.WebHome||target="blank"]] we created for this that will guide you in setting this up correctly. 57 - 58 -The configuration consists of at least three separate support objects. Two are needed once (infinispan cache manager and clustered lock registry), whereas the other is required per unique group you have defined within the context of your runtime. So, if you have two unique group names within the runtime, you need two leader initiator support objects. 59 - 60 -{{info}}When using this configuration across multiple runtimes on the same machines you need to take the following into account. 61 - * Each container needs a different port to communicate through. This can be configured by adding a [[route>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.eMagiz Cloud Management.intermediate-emagiz-cloud-management-routes||target="blank"]] in Deploy Architecture 62 - * Each container needs their own cluster. This can be achieved by providing unique names for the cluster when configuring the Infinispan Cache Manager (via the [[store item>>doc:Main.eMagiz Store.Accelerators.Active-Passive Failover.WebHome||target="blank"]]){{/info}} 63 - 64 -=== 3.3.1 Infinispan Cache Manager === 65 - 66 -Given this, let us first look at the Infinispan cache manager. You can add this support object in the [[standard manner>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-support-objects-introduction||target="blank"]] by searching for "infinispan cache manager." 67 - 68 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-cache-manager-search-result.png]] 69 - 70 -Once found, give it a name and fill in a cluster name. 71 - 72 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-cache-manager-basic.png]] 73 - 74 -Once done, switch to the "Advanced" tab, select the option "TCP Ping," and fill in the "Host address" and "Other host addresses". Once filled in, press Save to keep your changes. 75 - 76 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-cache-manager-advanced.png]] 77 - 78 -{{warning}}Please note the following when configuring the values for the host and other host address(es): 79 -* The relevant values in case of running on-premise should be requested internally with your infrastructure provider 80 -* The relevant values in case of running in the cloud can be requested via eMagiz 81 -* The "Other host addresses" value **needs** to include a reference to the port through which both hosts communicate.{{/warning}} 82 - 83 -=== 3.3.2 Clustered Lock Registry === 84 - 85 -Now that we have the cache manager, we can configure the next support object on our list, the clustered lock registry. You can add this support object in the [[standard manner>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-support-objects-introduction||target="blank"]] by searching for "lock registry." 86 - 87 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-lock-registry-search-result.png]] 88 - 89 -Once found, name it and select the cache manager support object you created. 90 - 91 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-lock-registry-basic.png]] 92 - 93 -=== 3.3.3 Leader Initiator === 94 - 95 -Lastly, we need to configure a leader initiator for each **unique** group we have defined within the context of the runtime, and that uses the failover functionality. You can add this support object in the [[standard manner>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-support-objects-introduction||target="blank"]] by searching for "leader." 96 - 97 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-leader-initiator-search-result.png]] 98 - 99 -Once found, give it a name, define the role name (which should **exactly** match the name you gave in the inbound components), and link it to the lock registry. 100 - 101 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-flow-configuration-leader-initiator-basic.png]] 102 - 103 103 == 4. Key takeaways == 104 104 105 105 * Grouping is beneficial when external systems go through maintenance or downtime.