Skip to content

New labels in config schema #4096

Closed
@TarantoolBot

Description

@TarantoolBot

Related dev. issue(s): tarantool/tarantool#9809

Product: Tarantool
Since: 3.1
Root document:

SME: @ Lord-KA

Details

The new labels are basically maps with string keys and values,
that are merged down to instance level. It means that if a replicaset
and an instance inside it have label with same key and different
value, the actual value is the one instance provided, e.g.

groups:
  group-001:
    replicasets:
      replicaset-001:
        labels:
          foo: 'true'
          bar: 'true'
        instances:
          instance-001:
            labels:
              baz: 'true'
              foo: 'false'

Results in:

./instance-001.iproto> require('config'):get('labels')
---
- baz: 'true'
  foo: 'false'
  bar: 'true'
...

Requested by @ Lord-KA in tarantool/tarantool@6d46a04.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions