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

ccg: add support for nodes list generation by pattern #568

Open
ikopylov opened this issue Aug 18, 2022 · 1 comment · May be fixed by #866
Open

ccg: add support for nodes list generation by pattern #568

ikopylov opened this issue Aug 18, 2022 · 1 comment · May be fixed by #866
Assignees
Labels
feature New feature or request good first issue Good for newcomers

Comments

@ikopylov
Copy link
Member

ikopylov commented Aug 18, 2022

With a large number of servers, it becomes difficult to fill even the nodes section.
I suggest to add command to ccg, that allows to generate nodes section for cluster.yaml or add new nodes to existed cluster.yaml by patterns. Patten should support range syntax.

Example: 192.168.0.[10-18]:20000/opt/disk[1-12]
With this pattern nodes section should have 8 nodes (192.168.0.10:20000, 192.168.0.11:20000, ..., 192.168.0.18:20000) each of which should have 12 disks (/opt/disk1, /opt/disk2, ..., /opt/disk12).

Node name should be generated from node address by replacing non digit or letters symbols to _. Example: 192_168_0_10.
Disk name should be generated with auto increment on every node. Example: disk1, disk2, ...

Another valid pattern examples: node-[1-8]:20000/opt/l[1-2]/d[1-4], 192.168.[0-4].[10-12]:20000/disk1

@ikopylov ikopylov added the feature New feature or request label Aug 18, 2022
@ikopylov ikopylov added the good first issue Good for newcomers label Oct 17, 2023
@ficusinapot
Copy link

assigned to me

ficusinapot pushed a commit to ficusinapot/bob that referenced this issue Jan 31, 2024
@ikopylov ikopylov linked a pull request Jan 31, 2024 that will close this issue
ficusinapot pushed a commit to ficusinapot/bob that referenced this issue Feb 5, 2024
…nto 568-nodes-list-generation-by-pattern

add changelog (qoollo#568)
ficusinapot pushed a commit to ficusinapot/bob that referenced this issue Feb 5, 2024
ficusinapot pushed a commit to ficusinapot/bob that referenced this issue Feb 21, 2024
ficusinapot pushed a commit to ficusinapot/bob that referenced this issue Feb 21, 2024
ficusinapot pushed a commit to ficusinapot/bob that referenced this issue Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants