[midPoint] How to Configure Midpoint in Cluster Mode
Gus Lou
gugalou38 at gmail.com
Thu Dec 17 19:00:28 CET 2020
I made the changes suggested by you. The two nodes are up and I got access
to the midpoint GUI by accessing the address of any of the nodes. Thanks
for the usual help, I will continue with the tests and report the results.
Regards
Gus
Em qui., 17 de dez. de 2020 às 13:52, Ivan Noris via midPoint <
midpoint at lists.evolveum.com> escreveu:
> Correction: either command line option -Dmidpoint.nodeId=Node1 OR
> config.xml modification for nodeId.
>
> Ivan
> On 17. 12. 2020 17:50, Ivan Noris via midPoint wrote:
>
> Hi Gus,
>
> you have to specify the option via command line parameters for midpoint
> process or in config.xml
>
> E.g. -Dmidpoint.nodeId=Node1
>
>
> in config.xml it seems the <nodeId>Node1</nodeId> must be in <midpoint>
> section of the file.
> <configuration>
> <midpoint>
> <nodeId>MyNode1</nodeId>
> <taskManager>
>
> <clustered>true</clustered>
>
> </taskManager>
>
> ...
>
> It works for my case with midpoint 4.2-support (I have only one node, but
> it starts as clustered and I can see the node name in Server tasks - All
> nodes)
>
> In case of two nodes, they must have different names of course.
>
> Best regards,
>
> Ivan
> On 17. 12. 2020 17:18, Gus Lou via midPoint wrote:
>
> Hi Guys
>
> I am analyzing the implementation of Midpoint in cluster mode.
> My environment has 3 distinct servers (midpoint-db1, midpoint-app1,
> midpoint-app2). One server with postgres database and two servers with
> midpoint 4.2.
>
> I am using the documentation below.
> https://wiki.evolveum.com/pages/viewpage.action?pageId=11075783
> https://wiki.evolveum.com/display/midPoint/Managing+cluster+nodes
> I'm in doubt on how to configure the configuration of the nodes in the
> config.xml file
>
> My config.xml file:
>
> <repository>
>
> <repositoryServiceFactoryClass>com.evolveum.midpoint.repo.sql.SqlRepositoryFactory</repositoryServiceFactoryClass>
> <database>postgresql</database>
> <jdbcUsername>midpoint</jdbcUsername>
> <jdbcPassword>mypassword</jdbcPassword>
> <jdbcUrl>jdbc:postgresql://192.168.0.45/midpoint</jdbcUrl>
> <hibernateHbm2ddl>none</hibernateHbm2ddl>
> <missingSchemaAction>create</missingSchemaAction>
> </repository>
> <taskManager>
> <clustered>true</clustered>
> </taskManager>
> <nodeId> nodeA </nodeId>
>
> When I start one of the nodes, I get the following error:
>
> 2020-12-17 11:38:48,959 [] [main] ERROR
> (com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl): Cannot
> initialize TaskManager due to the following exception: .
> com.evolveum.midpoint.task.api.TaskManagerConfigurationException: Node ID
> must be set when running in clustered mode
> at
> com.evolveum.midpoint.task.quartzimpl.NodeIdComputer.determineNodeId(NodeIdComputer.java:88)
> at
> com.evolveum.midpoint.task.quartzimpl.TaskManagerConfiguration.setBasicInformation(TaskManagerConfiguration.java:286)
> at
> com.evolveum.midpoint.task.quartzimpl.Initializer.init(Initializer.java:46)
> at
> com.evolveum.midpoint.task.quartzimpl.TaskManagerQuartzImpl.init(TaskManagerQuartzImpl.java:239)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>
> I believe it is missing to specify the nodes in config.xml, I just didn't
> understand how.
> I tried to put it but without success as follows
>
> <nodeId> nodeA </nodeId>
>
> Does anyone have any ideas or examples?
>
> Regards
>
> Gus
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttps://lists.evolveum.com/mailman/listinfo/midpoint
>
> --
> Ivan Noris
> Senior Identity Engineerevolveum.com
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttps://lists.evolveum.com/mailman/listinfo/midpoint
>
> --
> Ivan Noris
> Senior Identity Engineerevolveum.com
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20201217/d86d6a98/attachment-0001.htm>
More information about the midPoint
mailing list