You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2015/07/31 19:18:05 UTC

[jira] [Commented] (GEODE-182) Generate "random" member names if no name is provided

    [ https://issues.apache.org/jira/browse/GEODE-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14649496#comment-14649496 ] 

Darrel Schneider commented on GEODE-182:
----------------------------------------

I not sure but I think when you use gfsh to start a server with a name it looks for a directory with that name. If one does not exist it creates one. The server's will store its log, stats, and disk stores in this directory.

If you assign a different random name each time this directory will not get reused. And if the server has disk stores it will not find them on the next restart.


> Generate "random" member names if no name is provided
> -----------------------------------------------------
>
>                 Key: GEODE-182
>                 URL: https://issues.apache.org/jira/browse/GEODE-182
>             Project: Geode
>          Issue Type: New Feature
>          Components: core
>            Reporter: William Markito Oliveira
>            Priority: Critical
>
> In current cloud and container deployments it's very common to allow the infrastructure to just re-execute the same command in order to provision a new node for a system.
> Since Geode require unique member names on a system I'm proposing to create something similar to what Docker and other projects does and generate "random" names on when none are provided.
> Following the Docker implementation, I'd suggest something like:
> * List of adjectives
> * List of gems 
> and a combination using _ for example:
> {code}
> clever_alexandrite
> sharp_emerald
> tender_sapphire
> {code}
> Those would be server names when *-name* param is not specified OR if a *property file* doesn't have a name as well. 
> From the initial list I'm thinking the model would have:
> * Adjectives = 56
> * Names = 70
> * Total names possible = 3920
> Other benefits I can see for non-cloud deployments as well is for example setting member ports to 0 and by providing no name, it's also easier to create multiple geode nodes on the same physical host without specifying names.
> This wouldn't change current naming features and capabilities.  I'm not planning to implement the feature for locators initially.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)