Changes for page Failover - Configuration
Last modified by Erik Bakker on 2024/09/27 14:06
From version 28.17
edited by Danniar Firdausy
on 2024/09/26 09:30
on 2024/09/26 09:30
Change comment:
There is no comment for this version
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - SettingupFailover-Design Phase1 +intermediate-runtime-management-deploy-agent - Parent
-
... ... @@ -1,1 +1,1 @@ 1 -Main.eMagiz Academy.Microlearnings.Intermediate Level. Groupingand Failover.WebHome1 +Main.eMagiz Academy.Microlearnings.Intermediate Level.eMagiz Runtime Management.WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. dfirdausy1 +XWiki.eMagiz - Content
-
... ... @@ -1,59 +1,39 @@ 1 -{{container}} 2 -{{container layoutStyle="columns"}} 3 -((( 4 -eMagiz flows, or more specifically, the flows' inbound components, can be grouped. The benefit from this 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. 1 +{{container}}{{container layoutStyle="columns"}}((( 5 5 6 - Buildingonthis functionality,you canevenconfigurehegrouptorun inan active/passivefailover modewhenyou activatee multiple runtimes option onyourruntime,andeach separate runtimeis deployedon anothermachine. Thefailoverfunctionalityisnot onlyrelevantin casesofservermaintenance.It canalsoassistyouwhen youwanttoexchangedata witha systemthat allows onlyoneactiveconnection.Shouldthis connectionbebusiness-critical,you canuse thisfailoverfunctionalityto createapassivefailoversituationthatwilltakeoverwhen theactiveconnection breaksdown(regardlessofthereason).3 +In some cases, the complete stack trace must be logged when something goes wrong on runtime. In eMagiz, only the top-level information is shown, and sometimes the entire stack trace. When this particular runtime runs on-premises, you can see the complete logging on the runtime level. In this microlearning, we will learn how to find the log and look through the log to find the corresponding error and subsequently analyze that error. 7 7 8 -Setting up this failover functionality in your model requires you to first execute some steps in your Design, Create, and lastly Deploy phase. In this microlearning, we will focus on configuring your setup in the Design phase 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 .9 +* Intermediate knowledge of the eMagiz platform 15 15 16 16 == 2. Key concepts == 17 17 18 -This microlearning describes how t o configure(partsof) ofyourDesignphaseto enable failoverforsystemsconnectingwith yourmodel.Thegroupingandfailoverfunctionalityisrelevantwhenfacedwith maintenanceandoutagesof systemsconnectedto yourmodel.Thefailoverfunctionalityassistsin thatcaseand allowsyouto have afallbackoptiononanactiveconnection.13 +This microlearning describes how the eMagiz Deploy agent is installed on the on-premises server where a eMagiz runtime should run on. Please note that the eMagiz Deploy agent requires a valid Docker installation on the on=-premises server. The detailed install guide can be found on 19 19 20 - == 3. DesignPhaseConfiguration==15 +OnfigfueMain.eMagiz Academy.Microlearnings.Expert Level.Solution Architecture.expert-solution-architecture-onpremises-installguide 21 21 22 -== 3. 1SolutionDesign ==17 +== 3. Interpreting log on-premise == 23 23 24 - Toconfigurefailover for systems that are connectingwithyour model, we first need to go to theDesign phase. In your Design>Solution Design, find and open the details of the system that you want to enable failover for. Once you do that, then you need to makesurethat "Multiple runtimes" option is selected for this system, which is logical sincewe wantto have a second runtime running in case of failover situations (e.g., outage, maintenance, etc.). Afterward, you willsee the "Number of runtimes"and "Run in failover" fields. To enable failover, make surethat you fill in 2 as the "Numberof runtimes",before selecting the "Run in failover" checkbox. See the screenshot below as an example.19 +=== 3.7 eMagiz Docker agent installation === 25 25 26 - [[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-setting-up-failover-design-phase-solution-design.png]]21 +eMagiz needs to install a specific agent in the Docker instance that allows to download runtime images that needs to be installed on the Docker instance. The specific command to run inside the Docker instance is specific for the machine that is configured inside eMagiz Design & Deploy Architectures. It can be found inside the eMagiz iPaaS portal under Deploy Architecture. At the runtime connector, there is a right click option called Deploy Agent. That presents either the command or the location where that agent is installed. 27 27 28 - {{info}}Systems with thefailoverption enabled must have "Numberof runtimes"exactly 2 and mustbe placedonn external machineintheArchitecturenel.{{/info}}23 +[[image:Main.Images.Microlearning.WebHome@expert-solution-architecture-onpremises-installguide-deployagent.png]] 29 29 30 - == 3.2 DesignArchitecture==25 +After installing the agent, you can use the Docker cheat sheet below to see if the docker containers are running and/or images are available. 31 31 32 -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 - 34 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-setting-up-failover-design-phase-design-architecture.png]] 35 - 36 -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 keeping track of the existing group names (in which, runtime containers set to failover are part of those groups) and routing communication between two runtimes (e.g., lead and backup). Next to that, they also facilitate the communication between runtimes when a runtime joins a group (e.g., during startup) or leaves a group (e.g., when becoming inactive). 37 - 38 -[[image:Main.Images.Microlearning.WebHome@grouping-and-failover--intermediate-grouping-and-failover-setting-up-failover-design-phase-routers.png]] 39 - 40 -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. 41 - 42 42 == 4. Key takeaways == 43 43 44 -* The inbound components of eMagiz flows can be grouped, allowing for centralized control, particularly beneficial during system maintenance or outages. 45 -* By enabling multiple runtimes across different machines, you can configure groups to operate in active/passive failover mode, ensuring continued operation during connection failures, system maintenances, or outages. 46 -* Setting up the failover functionality requires configuration in the Design phase, where you enable multiple runtimes and set up failover options in both the Solution Design and Architecture sections. 47 -* In the Design Architecture, router containers are added to manage communication between the lead and backup runtimes, ensuring smooth transitions when a failover runtime becomes inactive or joins a group. 29 +* The karaf.log can be found within the folder called log under the folder data 30 +* You can search the log with the help of tools such as Notepad++ 31 +* By looking at the timestamp in the eMagiz Manage Log, you can run a focused search 48 48 49 -== 5. Suggested Additional Readings ==33 +== 6. Suggested Additional Readings == 50 50 51 - If youareinterested inthis topic and wantmoreinformation, pleasereadthe help text providedby eMagiz andcheckout theselinks:35 +No suggested additional readings for this microlearning. 52 52 53 -* [[Failover (Search Results)>>url:https://docs.emagiz.com/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_space_facet=0%2FMain.&l_space_facet=10&f_type=DOCUMENT&f_locale=en&f_locale=&f_locale=en&text=%22Failover%22||target="blank"]] 54 -))) 55 -((( 56 -{{toc/}} 57 -))) 58 -{{/container}} 59 -{{/container}} 37 +* [[Container commands on containers>>https://docs.docker.com/engine/reference/commandline/ps/||target="blank"]] 38 +* [[Logging commands on containers>>https://docs.docker.com/engine/reference/commandline/logs/||target="blank"]] 39 +)))((({{toc/}}))){{/container}}{{/container}}