Skip to content

根据HOSTNAME的数字尾缀获取workerId的IdGenerator #192

Description

@hanahmily

HostNameWorkerIdIdGenerator:根据机器名最后的数字编号获取workerId,如果线上机器命名有统一规范,建议使用此种方式

列如:机器的HostName为dangdang-db-sharding-dev-12,会截取最后的编号12作为workerId。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions