Documentation of plugin scope resolution

Suppose I have added plugin globally, service, route and consumer wise with different value. How will resolution happen.
Plugin may be Request Size Limiting or IP restriction.
Please provide how rules are prioritized/