Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport 3.1] config: use vshard-ee if available #10144

Commits on Jun 18, 2024

  1. loaders: add require_first function (internal)

    Usage example:
    
    ```lua
    local loaders = require('internal.loaders')
    local vshard = loaders.require_first('vshard-ee', 'vshard')
    ```
    
    The function is for internal use.
    
    It would be nice to have something of this kind in the public API, but
    I'm not going to solve it within this patch.
    
    Needed for tarantool/tarantool-ee#815
    
    NO_DOC=no public API changes
    NO_CHANGELOG=see NO_DOC
    
    (cherry picked from commit 3abd4f9)
    Totktonada committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    cdd01ed View commit details
    Browse the repository at this point in the history
  2. config: use vshard-ee if available

    The new closed-source `vshard-ee` module was recently introduced. It is
    based on the open-source `vshard` module and, as far as I know, provides
    the same API.
    
    Let's configure `vshard-ee` in the same way as `vshard` if sharding is
    enabled in tarantool's configuration.
    
    Prefer `vshard-ee` if both are available.
    
    Fixes tarantool/tarantool-ee#815
    
    @TarantoolBot document
    Title: config: vshard-ee is now supported
    
    The declarative configuration supports `vshard-ee` in addition to
    `vshard` since Tarantool 3.1.1 and 3.2+.
    
    `vshard` is mentioned in the documentation at least [here][1]. All such
    places should be updated to mention both `vshard-ee` and `vshard`.
    
    [1]: https://www.tarantool.io/en/doc/latest/reference/configuration/configuration_reference/#sharding
    
    (cherry picked from commit 29519c7)
    Totktonada committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    89fa2a7 View commit details
    Browse the repository at this point in the history