Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#ParameterExpectationNotesSign-off
1Maximum number of cm data subscriptions200

kieran mccarthy confirmed


2Maximum, Average CM Handles per subscription Max: TBD
Avg: 200

kieran mccarthy to confirm
Note: consider limit and future 'simple' ALL (wildcard) option when above that limit


3Maximum, Average XPaths per CmHandleMax: 
Avg: 10

4Status update processing time limitBased on the numbers above working out the current state of each cm handle/xpath combination could be slow!

kieran mccarthy order of 30 seconds (NCMP side)


...

)

IssueNotes Decision
1Is it intended that CM Notification subscription request  cover (all) descendants of the given xpath too?!e.g.. if a child is removed and there is a subscription for the parent node, will a notification be send (grandchild, child leaf updates etc.) I hope NOT!
Consider:
  • Risk of client effectively subscribing to ALL data in a cm handle by specifying top level datanode(s)
  • Complexity (i.e. cost of) of merge operation. It might even required NCMP to check relevant dat model
  • Future use of wildcards, could be a viable alternative for including descendants

kieran mccarthy descendant not covered by 'basic' paths Wildcard will cover this kind of function in future 

2Could xpath point to an element that does not exist (yet)if not how, how can I client be informed about a create event? 

kieran mccarthy  yes, xpath can point to things that don't exist yet (not even in the curernt model when an upgraded is pending)

3Should NCMP support re-homing, moving of a CM Handle from one DMI to another?assume only trough delete & create 

kieran mccarthy out of scope 

4CM Handle Delete: Should DMI or Clients be sent a subscription update 

do NOT delete dmi-subscription entry until owning subscription is deleted
(just ignore upon future delete if cm handle is gone altogether)

Note. LCM is already broadcast (today) 


  • kieran mccarthy re-use existing LCM event → also send it on topic for he subscription (currently fixed topic)
  • Need to upgrade to CloudEevent format
  • Add subscription id (name+client id) to header (so client can filter)
5Validation of xpathoptions order of implement and also performance cost!
  1. none
  2. xpath-parser
  3. model check
  4. instance check

kieran mccarthy not required right now 

6can DMI plugin 'reject' a subscription create (for a given cm-handle-xpath combination)As NCMP might not validate as per issue#5 the DMI=plugin or component further down might have to reject an invalid xpath...

Priyank Maheshwari 

yes currently DMI can use response to say which cm handles are not accepted i.e. rejected' (but not 'pending') 

kieran mccarthyconfirms DMI can reject whole subscription

7implementation question: should 'rejected' DMI-subscriptions be storednot needed as whole subscription should be rejected

kieran mccarthyconfirms

8Dimensioning of DB depends on #cm handles, #subscriptions and #xpaths per subscription, this could be too big for fast processing of updates! Need to agree maximum and possibly realistic average/total number of entries based on the characteristics  above
The team is blocked until this becomes clear as it wil affect the way the data needs to be modelled exactly
ongoing but not completed!
9Maximum (error) message sizetheoretically all cm handles and all xpaths combinations could be rejected or pending leading to a very large error message!

Toine Siebelink no longer relevant given and max decided 

10can each CM-Handle have different set of xpath(s) per subscriptionthe  current 'basic' solution only supports a common set of datastore/xpaths (filter)

 kieran mccarthy Yes, clients will create only one subscrption subscription and they might have different needs for differnt different nodes (cm handles) 

11can the same cm handle/xpath have different subscriptions with different datastores, does that affect the cm data notifications send (which datastore applies)
  • can register on any (passthrough) datastore
    • running
    • operational

  • compulsory, validation needed
  • part of KEY (unique entry) so cmHandle+datastore+xpath is the key 


kieran mccarthy datastore included.

Although this wiki-page will not be updated where cmHandle+xpath is mentioned as  unique entry etc. this should now include a third field: datastore as well.

12Will migration from 'basic' be supportedPreferred to ask customers to create new subscriptions

kieran mccarthy no need to support (migration) of 'basic' solution. Development of 'basic' solution can be stopped!

13list v list instances filtering

/p/c1
/p/c1[@key=23]
Are these diiffrent different paths or not (from ncmp point of view)
*List instances might not always be supported, depending DMI Plugin impl.

kieran mccarthy yes, from NCMP point of view a list and a list entry are different xpaths

14confirm subscription id (currently subscription name + client id)

kieran mccarthy to clarify ASAP ASAP including exact format

all prefer a single id-field


15what subscription details should be send when there is a change (in the union)
  1. just delta
  2. just union
  3. union and delta (delta flagged) 

(after initial meeting) kieran mccarthy & Toine Siebelink  agreed that because of the possible size of the union (200x200x10=400,000) it is only feasible to send the delta ie option 1.

16one DMI rejects whole (see decision #6) subscription (affected cmhandles) but other DMI accepts the same subscription, is this possible how to handle

kieran mccarthy only sends message back to client about rejected DMIs i.e. the subscription can be partially 'active'


Solution Proposals 

Current state handling for 'basic' (not merged) subscription create/delete (under development)

Expand

Scenario 1
1) Create Sub from Client: CH-1, CH-2
2) All handled by DM1
3) NCMP to DMI request Create sub:  CH-1, CH-2
DMI responds within 30 seconds: Status OK

NCMP Send message to client: Statsu OK (no list with Rejected/Pending)


Scenario 2
1) Create Sub from Client: CH-1, CH-2
2) All handled by DM1
3) NCMP to DMI request Create sub:  CH-1, CH-2
DMI does NOT respon with 30 seconds

NCMP Send messge to client: Pending [CH-1, CH-2]

Scenario 3
1) Create Sub from Client: CH-1, CH-2
2) All handled by DM1
3) NCMP to DMI request Create sub:  CH-1, CH-2
DMI responds within 30 seconds: Rejected [CH-2]

NCMP Send message to client: Rejected [CH-2]

Scenario 4:
4 different DMIs each handling 2 Cm Handles, create sub for all CHs 

Scenario 4-part a
DMI1 CH-1, CH-2 All accepted within 30 secs
DMI2 CH-3, CH-4 Mixed result witin within 30 seconds e.g. Rejected [CH-4]
DMI3 CH-5, CH-6 No result after 30 seconds
DMI4 CH-7, CH-8 No result after 30 seconds

NCMP -> Client : Rejected [CH-4], Pending [ CH-5, CH-6, CH-7, CH-8 ]

4-part b
DMI3 PLugin responds after 40 seconds; status OK
NCMP -> Client : Rejected [CH-4], Pending [ CH-7, CH-8 ]

4-part c
DMI4 PLugin responds after 50 seconds; Rejected [CH-7]
NCMP -> Client : Rejected [CH-4, CH-7]

...

Gliffy Diagram
macroId5140c401-0d13-44d2-8e83-0f485d3ef9d3
displayNameSubscription Merge Example
nameSubscription Merge Example
pagePin6

* Note 1: given the possible combinations the message to DMI needs to be able to specify different xpaths per cm-handle. So a more complex structure is needed for this even ie. an array of CM Handles objects each having their own list of (target) xpaths!of (target) xpaths!
Note 2: as per decision #11'datastore' should be included in these messages as well

Delete Combinations

#Existing Subscription A-10Existing Subscription  B-52Client Delete A-10 RequestDMI Sub update/delete requestData Model* Before BeforeData Model* After Delete
1CH-1, [ /p/c1, p/c2 ]CH-1, [ /p/c1 ]
CH-1, [ p/c2 ]


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscribers
A10CH-1/p/c1[ A-10, B-52 ]
B52CH-1/p/c2[ A-10 ]




Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscribers
A10CH-1/p/c1[ A-10 ]

CH-1/p/c2[ A-10 ]



2CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-2, [ /p/c1]
CH-3, [ /p/c1]

CH-1, [ /p/c1]



Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscribers
A10CH-1/p/c1[ A-10 ]
B52CH-2/p/c1[ A-10, B-52]

CH-3/p/c1[ B-52 ]




Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscribers
B52CH-2/p/c1[ B-52 ]

CH-3/p/c1[ B-52 ]



3CH-1, [ /p/c1]

CH-1, [ /p/c1]
CH-2, [ /p/c1]

None


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscribers
A10CH-1/p/c1[ A-10 ]
B52CH-1/p/c2[ A-10, B-52 ]




Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscribers
B52CH-2/p/c1[ B-52 ]



* Note:  as per decision #11'datastore' should be included in the 'DMI susbcription' data model too now. 

Error-Upon-Error Combinations

...

Based on Issue#10 , we need to change the incoming schema from DME to NCMP.

  • A single subscription contains multiple predicates
  • Predicates should be an array of Predicates ( currently a single instance )
    • Each predicate contains an array of targets ( cmhandles) - as is.
    • Each predicate contains a single datastore (mandatory) 
    • datastore-xpath-filter should become an array of
    xpaths
    • xpath-filters (instead of pipe separated single string)


Performance considerations

...

  • DMI record could reach in millions of instances
  • In memory solution (ie hazelcast) can handle 10s - 100s of Megabytes (add some sample calc)
    • still need persistence if we don't have enough intsancesinstances
  • use many small messages reduce need for amalgamation
  • amalgamated string-based solution.... 

...