Ask Your Question

atomic variable across cluster

asked 2014-11-29 09:50:27 -0700

anonymous user


I have a counter that needs to be incremented. Each cluster member may increment it. How to implement the atomic operation of the variable across cluster?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-02 18:07:47 -0700

tbachman gravatar image

In order to for state to have cluster-wide visibility, it has to be part of a datastore. You're probably interested in using an operational data store for this, which means you'll want to define that state with a yang model and use yangtools to generate the associated java classes needed to implement this state.

edit flag offensive delete publish link more
Login/Signup to Answer


Asked: 2014-11-29 09:50:27 -0700

Seen: 139 times

Last updated: Feb 02 '15