Menu

#1453 clm: Call plug-in script when an unconfigured node tries to join the cluster

4.7.RC1
fixed
None
enhancement
clm
-
minor
2015-10-23
2015-08-14
No

Add support in CLM for calling a plug-in script when an unconfigured node tries to join the cluster. The use-case is primarily scale-out in cloud. By installing such a plug-in, it will be possible for an application to automatically add appropriate IMM configuration objects for a new node and let it join the cluster.

Related

Tickets: #1453
Tickets: #2509
Wiki: NEWS-4.7.0

Discussion

  • Mathi Naickan

    Mathi Naickan - 2015-08-17
     
  • Mathi Naickan

    Mathi Naickan - 2015-08-17

    Iam not sure i understood the scenario thoroughly. But, there are questions like

    • This is an admin's job of setting up the IMM configuration. This should be done by an OpenSAF external tool/script. Why should CLM bother about what an admin would do?
      i.e. What is the problem that the external script cannot solve that we are thinking of making OpenSAF do the configuration on behalf of the admin?
     
  • Anders Widell

    Anders Widell - 2015-08-17

    The idea is that the admin will provide the plug-in script that is called by OpenSAF to automatically expand the cluster. So CLM is not expected to reconfigure the system by itself; its only job here is to trigger the execution of the user-provided script when an unconfigured node tries to join.

     
  • Anders Widell

    Anders Widell - 2015-08-17

    Here is a prototype patch for this feature. Some parts are still missing:

    • Make the feature configurable
    • Add "batching" support - i.e. if many nodes try to join at the same time then we should call the script with a list of nodes, instead of calling the script one time for each node.
     
  • Mathi Naickan

    Mathi Naickan - 2015-08-17

    What about the AMF cluster hosted on these CLM nodes? Who configures it, i will be amused if it has to be done by AMF itself!? What about application configurations? AMF will do it? I think i still don't understand the problem!

     
  • Anders Widell

    Anders Widell - 2015-08-17

    The plug-in should add all configuration needed for the new node, i.e. both CLM & AMF configuration. The use-case is scale-out in a cloud, and the problem we are trying to solve is how to automatically bring in a new (scaled out) node into the cluster.

     
  • Anders Widell

    Anders Widell - 2015-09-22
    • status: assigned --> accepted
     
  • Anders Widell

    Anders Widell - 2015-09-28
    • status: accepted --> review
     
  • Anders Widell

    Anders Widell - 2015-10-01
    • Milestone: 4.7.FC --> 4.7.RC1
     
  • Anders Widell

    Anders Widell - 2015-10-12

    changeset: 6986:9c55c17b24c0
    branch: opensaf-4.7.x
    parent: 6984:99821ea1c0cc
    user: Anders Widell <an...sson.com>
    date: Mon Oct 12 10:14:32 2015 +0200
    summary: clmd: Add support for scale-out by calling a custom script to configure new nodes [#1453]</an...sson.com>

    changeset: 6987:60536d29c33f
    branch: opensaf-4.7.x
    user: Anders Widell <an...sson.com>
    date: Mon Oct 12 10:14:36 2015 +0200
    summary: clmna: Re-try joining the cluster when CLMD returns TRY_AGAIN [#1453]</an...sson.com>

    changeset: 6988:a21318bec696
    parent: 6985:f9f8e549f071
    user: Anders Widell <an...sson.com>
    date: Mon Oct 12 10:14:32 2015 +0200
    summary: clmd: Add support for scale-out by calling a custom script to configure new nodes [#1453]</an...sson.com>

    changeset: 6989:07bcccab7961
    tag: tip
    user: Anders Widell <an...csson.com>
    date: Mon Oct 12 10:14:36 2015 +0200
    summary: clmna: Re-try joining the cluster when CLMD returns TRY_AGAIN [#1453]</an...csson.com>

    [staging:9c55c1]
    [staging:60536d]
    [staging:a21318]
    [staging:07bccc]

     

    Related

    Tickets: #1453
    Commit: [07bccc]
    Commit: [60536d]
    Commit: [9c55c1]
    Commit: [a21318]

  • Anders Widell

    Anders Widell - 2015-10-23
    • status: review --> fixed
     

Log in to post a comment.

MongoDB Logo MongoDB