Skip to content

Use a delimiter between host name and it's replication index #11

Description

@LopatkinEvgeniy
fmt.Sprintf("%s%d", host, i)

What if host names will be: host1, host2, ... host21, host22. Current mechanism of replications naming will produce a lot of collisions. Some sort of delimiter is required:

const delimiter = "æ" // some rare utf-8 symbol
...

fmt.Sprintf("%s%s%d", host, delimiter, i)

For example unicode 'SYMBOL FOR UNIT SEPARATOR' may be used: https://www.fileformat.info/info/unicode/char/241f/index.htm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions