imbajin commented on issue #2667:
URL:
https://github.com/apache/incubator-hugegraph/issues/2667#issuecomment-2365729589
> To disable the legacy master-worker mechanism in a multi-server setup
using Apache HugeGraph, you need to set the `server.role` configuration option
to "computer". This can be done in your configuration file as follows:
>
> ```ini
> server.role=computer
> ```
>
> This setting ensures that the `RoleElectionStateMachine` is not
initialized, effectively disabling the legacy master-worker mechanism. Here is
the relevant configuration option:
>
> ```java
> public static final ConfigOption<String> SERVER_ROLE =
> new ConfigOption<>(
> "server.role",
> "The role of nodes in the cluster, available types are " +
> "[master, worker, computer]",
> allowValues("master", "worker", "computer"),
> "master"
> );
> ```
>
> By setting `server.role` to "computer", the `supportRoleElection` will be
false, and the role state machine will not be initialized
[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/config/ServerOptions.java?rgh-link-date=2024-09-22T06%3A49%3A54Z)[[2]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/core/GraphManager.java?rgh-link-date=2024-09-22T06%3A49%3A54Z).
>
> _To continue talking to [Dosu](https://dosu.dev), mention @dosu._
@dosu Thanks for the direct solution, could u also provide more details
about the legacy master-worker role code design & usage (As detailed and
systematic as possible)?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]