Skip to content

Commit

Permalink
Add some comments to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Jul 9, 2024
1 parent f96b827 commit 78d6bcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/trento/discovery/policies/cluster_policy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ defmodule Trento.Discovery.Policies.ClusterPolicy do
end)
end

# parse_nodes_actual_roles parses each node roles depending on the cluster and architecture type
# 1st param is the roles array, 2nd param is the cluster type and the 3rd the hana architecture
# In classic scale out, the roles string has 6 values: 4:P:master1:master:worker:master
# In scale out and angi architecture, the roles have only 4 values: "master1:master:worker:master"
defp parse_nodes_actual_roles(
[_, _, _, nameserver_actual_role, _, indexserver_actual_role],
ClusterType.hana_scale_up(),
Expand Down

0 comments on commit 78d6bcb

Please sign in to comment.