• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 10411319397
88%

Build:
DEFAULT BRANCH: master
Ran 15 Aug 2024 10:27PM UTC
Jobs 1
Files 514
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Aug 2024 10:16PM UTC coverage: 87.155% (-0.02%) from 87.171%
10411319397

push

github

Totktonada
connpool: support filtering by `sharding.roles`

Support filtering replicasets by the configured sharding role by adding
`sharding_roles` into the `connpool.filter()` and `connpool.call()`
options.

Closes #10318

@TarantoolBot document
connpool: `sharding.roles` filtering support
Now `connpool.filter()` and `connpool.call()` supports filtering by
sharding roles using the `sharding_roles` option. Its value is the table
containing the required sharding roles. Possible roles are: `router`,
`storage`. Filtering out the `rebalancer` instances are not supported.

Example:

```yaml
groups:
  group-001:
    replicasets:
      replicaset-001:
        sharding:
          roles: [router]
        instances:
          instance-001: {}
          instance-002: {}
  group-002:
    replicasets:
      replicaset-002:
        sharding:
          roles: [storage]
        instances:
          instance-003: {}
          instance-004: {}
```
```lua
-- Returns { 'instance-003', 'instance-004' }
connpool.filter({ sharding_roles = { 'storage' }})

-- Returns { 'instance-001', 'instance-002' }
connpool.filter({ sharding_roles = { 'router' }})

-- Would call the function 'f1' on 'instance-001' or 'instance-002'
connpool.call('f1', nil, { sharding_roles = { 'router' }})
```

68231 of 121541 branches covered (56.14%)

100879 of 115746 relevant lines covered (87.16%)

2466734.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10411319397.1 15 Aug 2024 10:27PM UTC 0
87.16
GitHub Action Run
Source Files on build 10411319397
Detailed source file information is not available for this build.
  • Back to Repo
  • 32244f48 on github
  • Prev Build on master (#10405817590)
  • Next Build on master (#10418356500)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc