Difference between revisions of "Installing Multiple Edge Instances"
Yash Chopade (talk | contribs) (→On Windows) |
Yash Chopade (talk | contribs) |
||
Line 44: | Line 44: | ||
* '''Service Name''': Modify the service name to `DatonisEdge_2`: | * '''Service Name''': Modify the service name to `DatonisEdge_2`: | ||
− | <pre><code>--winservicename DatonisEdge_2</code></pre> | + | <pre><code> --winservicename DatonisEdge_2</code></pre> |
This change needs to be applied to both the `install_edge_service.bat` and `uninstall_edge_service.bat` files. | This change needs to be applied to both the `install_edge_service.bat` and `uninstall_edge_service.bat` files. | ||
* '''Heap Memory Size''': Increase heap memory to 4096 MB: | * '''Heap Memory Size''': Increase heap memory to 4096 MB: | ||
− | <pre><code>--jvmarg Xmx4096m</code></pre> | + | <pre><code> --jvmarg Xmx4096m</code></pre> |
* '''Port Configuration''': Change the HTTP port to `8090` and the HTTPS port to `8444`: | * '''Port Configuration''': Change the HTTP port to `8090` and the HTTPS port to `8444`: | ||
− | <pre><code>org.osgi.service.http.port=8090 | + | <pre><code> org.osgi.service.http.port=8090 |
− | org.osgi.service.http.port.secure=8444</code></pre> | + | org.osgi.service.http.port.secure=8444</code></pre> |
== On Linux == | == On Linux == |
Revision as of 06:12, 30 September 2024
Contents
On Windows
Installation Guide: Adding Multiple Edge Instances on Windows
Prerequisites: Before installing multiple instances of Datonis Edge on the same Windows PC, you must adjust several configuration settings within the `datonis_edge` folder. Below are the configurations that need to be modified.
Configuration Steps:
1. Change the Service Name
When installing multiple instances or if you need a custom service name, you will need to update the service name in both the `install_edge_service.bat` and `uninstall_edge_service.bat` files. By default, the service name is set to `DatonisEdge`.
- File Locations:
* `datonis-edge/bin/install_edge_service.bat` * `datonis-edge/bin/uninstall_edge_service.bat`
- Instructions:
* In both files, locate the line that starts with `java -jar`.
* Append the following argument to this line in both files: --winservicename new_datonis_edge_service_name
* Replace `new_datonis_edge_service_name` with your desired custom service name.
This ensures that both installation and uninstallation processes recognize the same custom service name.
2. Change Heap Memory Size
To adjust the default heap memory size (which is set to 2048 MB by default), edit the `install_edge_service.bat` file.
- File Location: `bin/install_edge_service.bat`
- Instructions:
* Locate the argument:--jvmarg Xmx2048m
* Change `Xmx2048m` to the desired memory size. For example, to set the heap size to 4096 MB:--jvmarg Xmx4096m
3. Change Default Ports
Datonis Edge uses ports `8080` for HTTP and `8443` for HTTPS by default. If you’re running multiple edge instances, you’ll need to assign different ports for each instance.
- File Location: `config/config.ini`
- Instructions:
* Open the `config.ini` file and locate the following lines:
org.osgi.service.http.port=8080 org.osgi.service.http.port.secure=8443
* Change `8080` to your preferred HTTP port and `8443` to your preferred HTTPS port.
Example:
For instance, if you're setting up a second instance of Datonis Edge, you might make the following changes:
- Service Name: Modify the service name to `DatonisEdge_2`:
<code> --winservicename DatonisEdge_2</code>
This change needs to be applied to both the `install_edge_service.bat` and `uninstall_edge_service.bat` files.
- Heap Memory Size: Increase heap memory to 4096 MB:
<code> --jvmarg Xmx4096m</code>
- Port Configuration: Change the HTTP port to `8090` and the HTTPS port to `8444`:
<code> org.osgi.service.http.port=8090 org.osgi.service.http.port.secure=8444</code>