PearsonEducation / thalassa-aqueduct

Dynamic haproxy load balancer and configuration. Part of Thalassa
Other
37 stars 17 forks source link

Filtered routing based on metadata #2

Open mbrevoort opened 11 years ago

mbrevoort commented 11 years ago

Add additional control for filtering the routing of members based on some metadata in the service registration.

For example if a registration has a zone property { role: 'foo', version: '1.0.0', host: '127.0.0.1', port: 8080, zone: 'azone' }

A backends of dynamic might only rout to those members with zone azone like:

{
    type: 'dynamic',
    role: 'foo',
    version: '1.0.0',
    filters: [ { zone: 'azone' }]
}

Something like that anyway...