Re: Does relation scopes need to match?

2017-06-08 Thread Cory Johns
The original intention of conversations and scopes was to simply certain interface interaction patterns where it may not be relevant or useful on your end of the relation to deal with each remote unit individually. An example might be if the remote service is expected to have a leader which

Re: Does relation scopes need to match?

2017-06-07 Thread fengxia
Just to clarify my question. I know the official doc of these scopes, that data are broadcasted in GLOBAL and UNIT is maintained as 1-to-1. What I'd like to know is when we should use GLOBAL, and when to use UNIT? When I deploy multiple units of a charm, does it mean its end of relation must

Does relation scopes need to match?

2017-06-07 Thread fengxia
Hi Juju, I'm learning to write a relation. One thing that's puzzling to me is the scope. The question is, must provide and require use the same scope? For experiment, I have a scope.GLOBAL provide and scope.UNIT require. In deployment, there is one provide unit and three require units. In