Changes for page Volume Mapping (On-premise)
Last modified by Erik Bakker on 2024/08/26 12:37
From version 44.1
edited by Erik Bakker
on 2022/10/31 10:42
on 2022/10/31 10:42
Change comment:
There is no comment for this version
To version 51.1
edited by Erik Bakker
on 2022/12/29 12:33
on 2022/12/29 12:33
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,5 +1,9 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 2 3 +{{warning}} 4 +Please note that this microlearning is for the new monitoring stack only. 5 +{{/warning}} 6 + 3 3 When you need to read and write files from an on-premise disk, you need to know the path in which the data is stored and make sure that the docker container in your runtime(s) running has access to this path. There are several ways of dealing with this challenge. First, this microlearning will discuss the various alternatives and best approaches in these scenarios. 4 4 5 5 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. ... ... @@ -42,57 +42,78 @@ 42 42 43 43 === 3.1 Volume === 44 44 45 -The first type available to you is Volume. With this option you create one or more folders ondockerthat isrelevantforthat runtime to read and/orwrite **persistent** data. To configure thistype you need to link the runtime volume to a machine volumethatyou can create within the same pop-up. This meansthatyou can re-use a "Machine volume" over multiple runtimes (i.e. containers).49 +The first Type available to you is Volume. With this option, you create one or more folders on Docker relevant to that runtime to read and write **persistent** data. To configure this Type, you need to link the runtime volume to a machine volume you can create within the same pop-up. This means you can re-use a "Machine volume" over multiple runtimes (i.e., containers). 46 46 47 -So, atfirstweopen the tab called "Machine volume".By pressing the "New" button we can define a new "Machine volume". In the pop-up that follows we candefinethe name of a machine volume and tell whether thevolume already exists on your docker installation or not.51 +So, we first open the tab called "Machine volume." Then, by pressing the "New" button, we can define a new "Machine volume." In the pop-up that follows, we can specify the name of a machine volume and tell whether the Volume already exists on your docker installation or not. 48 48 49 49 [[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--machine-volumes-configuration.png]] 50 50 51 -Once you have done so we press "Save" and switch back to the "Runtime volumes" tab. Inherewe pressthe "New" button to create a new "Runtime volume". In the pop-upthat follows we first need to select the Type we want to use. For this example we use thetype called "Volume". Based on your selection the relevant input fields will change.55 +Once you have done so, we press "Save" and switch back to the "Runtime volumes" tab. Then, we push the "New" button to create a new "Runtime volume." In the following pop-up, we first need to select the Type we want to use. For this example, we use the Type called "Volume." Based on your selection, the relevant input fields will change. 52 52 53 53 [[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--runtime-volumes-configuration-type-volume.png]] 54 54 55 -The first thing we need to select is the "Machine volume ". Once we have selectedour "Machine volume" weneedtoselect the Targetthat isspecific for this runtime. This target defines the second part of the path to which the runtime will gain access. For example, when you fill in "/target" we can combine this with the "Machine volume" name to arrive at the correct directory from which eMagiz needs to read data (or write data to). So in our case this would be "/file-directory/target."59 +The first thing we need to select is the "Machine volume." Once we have chosen our "Machine volume," we must set the Target specific for this runtime. This target defines the second part of the path to which the runtime will gain access. For example, when you fill in "/target", we can combine this with the "Machine volume" name to arrive at the correct directory from which eMagiz needs to read data (or write data to). So in our case, this would be "/file-directory/target." 56 56 57 -The last setting we need to configure is to define which rights we will grant our runtime on the volume we are creating. The default setting is read/write rights for the runtime which is sufficient in most cases. The result of following these steps will be the following.61 +The last setting we need to configure is to define which rights we will grant our runtime on the Volume we are creating. The default setting is read/write rights for the runtime, which is sufficient in most cases. The result of following these steps will be the following. 58 58 59 59 [[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--runtime-volumes-configuration-type-volume-filled-in.png]] 60 60 61 -{{warning}}Note ,that when you use the Volume option the external system with which you exchange data on-premise via a filevolume (i.e. directory) you have configured in Docker. Should this be a problem the Bind mount alternative discussed below should be considered.{{/warning}}65 +{{warning}}Note that when you use the Volume option, the external system with which you exchange data on-premise via a file-based method needs to be able to write or read the data from the Volume (i.e., directory) you have configured in Docker. Should this be a problem, the Bind mount alternative discussed below should be considered.{{/warning}} 62 62 63 63 === 3.2 Bind mount === 64 64 65 -An alternative option to read and write **persistent** data is to use the "Bind mount" option avaiable. In general we advicetousethe "Volume" option because they have better performance and bind mountsaredependenton the directory structure and OS of thehost machine.Havingsaid that notallexternal systems can adapt to this that easily.Thatis whythe "Bind mount" option canbe ofinterestinyour use case.69 +An alternative option to read and write **persistent** data is to use the "Bind mount" option. In general, we advise using the "Volume" option because they have better performance, and bind mounts depend on the host machine's directory structure and OS. However, only some external systems can adapt to this that easily. For example, the "Bind mount" option can interest your use case. 66 66 67 - To configure"Bindmount" you need to defineasource and a target directory that arelinked to each other.Thesourcedirectory definestheirectory onyour local system (that might already bein use currentlytoxchangefiles). Thetargetdirectory definesa directory onyourdocker installationhat can be accessed bytheruntime.71 +[[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--runtime-volumes-configuration-type-bind-mount.png]] 68 68 73 +To configure a "Bind mount," you need to define a source and a target directory linked to each other. The source directory represents the directory on your local system (that might already be used currently to exchange files). The target directory defines a directory on your docker installation that the runtime can access. 74 + 75 +{{warning}}Note that when the source directory does not exist, the runtimes cannot be deployed correctly. One of the following two configurations displayed below are needed to find the source directory: 76 +* /mnt/host/{local-directory} 77 +* /run/desktop/mnt/host/{local-directory}{{/warning}} 78 + 79 +[[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--runtime-volumes-configuration-type-bind-mount-filled-in.png]] 80 + 81 +{{info}}Note that when you use this option, your directory reference in your flow should refer to the "target" directory configured here.{{/info}} 82 + 69 69 === 3.3 Temporary file system === 70 70 85 +The temporary file system option is for you if you do not want to work with **persistent** data but require **non-persistent** data. This way, you can increase the container's performance by avoiding writing into the container's writable layer. 86 + 87 +[[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--runtime-volumes-configuration-type-temp-file-storage.png]] 88 + 89 +To configure this option, you need a target location. On top of that, you can define the maximum size of the temporary file system. 90 + 91 +[[image:Main.Images.Microlearning.WebHome@novice-file-based-connectivity-volume-mapping-on-premise--runtime-volumes-configuration-type-temp-file-storage-filled-in.png]] 92 + 93 +{{warning}}We strongly advise you to define this number so that you can limit the potential impact this solution can have on the stability of your machine.{{/warning}} 94 + 71 71 === 3.4 Named pipe === 72 72 97 +The named pipe option can be selected, but we yet have to see a valid use case within the context of eMagiz for using this option. Therefore we won't discuss this option further in this microlearning. 98 + 73 73 == 4. Assignment == 74 74 75 - Configureanentryinwhich youbuild the archivingand thecleanup ofthe archiving.76 -This assignment can be completed with the help of the (Academy) project thatyouhavecreated/used in the previous assignment.101 +Navigate to Deploy -> Architecture and look at the Volume mapping options, read the help texts, and play around with the settings (if it is not a customer environment). 102 +This assignment can be completed with the help of the (Academy) project you created/used in the previous assignment. 77 77 78 78 == 5. Key takeaways == 79 79 80 -* Archiving is used for audit purposes 81 -* Archiving is used for retry scenarios 82 -* Ensure that data is cleaned after a retention period to keep in control of the data 83 -* Don't forget the max messages per poll 106 +* File-based communication on-premise changes in the new runtime architecture 107 +* There are two ways to store **persistent** data 108 + ** Volume 109 + ** Bind mount 110 +* The Volume option is considered the best alternative because they have better performance, and bind mounts are dependent on the directory structure and OS of the host machine 111 +* When you want to deal with **non-persistent** data, the Temporary file storage option is the way to go. 84 84 85 85 == 6. Suggested Additional Readings == 86 86 87 -If you are interested in this topic and want more information on itplease read the help text provided by eMagizand check out the following store content:115 +If you are interested in this topic and want more information, please read the help text provided by eMagiz. 88 88 89 -* [[File Archiving>>doc:Main.eMagiz Store.Accelerators.File Archiving.WebHome||target="blank"]] 90 -* [[Delete Folder(s)>>doc:Main.eMagiz Store.Accelerators.Delete Folder(s).WebHome||target="blank"]] 91 - 92 92 == 7. Silent demonstration video == 93 93 94 -This video demonstrates how you could have handled the assignment and gives you somecontext onwhat you have just learned.119 +This video demonstrates how you could have handled the assignment and gives context to what you have just learned. 95 95 96 - {{video attachment="novice-file-based-connectivity-characterset.mp4" reference="Main.Videos.Microlearning.WebHome"/}}121 +TBA 97 97 98 98 )))((({{toc/}}))){{/container}}{{/container}}