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

UUID use in partitioner #441

Merged
merged 5 commits into from
Jan 31, 2025
Merged

UUID use in partitioner #441

merged 5 commits into from
Jan 31, 2025

Conversation

robertglonek
Copy link
Collaborator

No description provided.

Robert Glonek and others added 5 commits January 23, 2025 14:52
This has been refactored in preparation for modifying the cluster config
command to use the partition UUID instead of encoding the device path directly.
Because certain cloud providers don't guarantee that devices will enumerate in
a consistent order, use the PARTUUID instead of the device when working with
partitions.

This will result in an aerospike namespace config that looks like this:

```
namespace test {
    default-ttl 0
    index-type flash {
        mount /mnt/05f452fc-e059-4f0f-aad7-ece9b0528f51
        mount /mnt/7b484aac-6166-49c9-b710-6c165cbf9a52
        mount /mnt/aa9e5735-0840-403e-b5d4-06fff5f63313
        mount /mnt/15d84ea5-4f58-415f-a275-eef72ef8f927
        mounts-budget 279340646K
    }
    partition-tree-sprigs 8192
    replication-factor 2
    sindex-type flash {
        mount /mnt/15f452fc-e059-4f0f-aad7-ece9b0528f42
        mount /mnt/6b484aac-6166-49c9-b710-6c165cbf9a42
        mount /mnt/3a9e5735-0840-403e-b5d4-06fff5f63338
        mount /mnt/85d84ea5-4f58-415f-a275-eef72ef8f919
        mounts-budget 279340646K
    }
    storage-engine device {
        device /dev/disk/by-partuuid/7b3398e7-2c44-4d1e-a9d4-d8a7306f0981 /dev/disk/by-partuuid/85244191-e8ff-4efa-8e01-becde33901f0
        device /dev/disk/by-partuuid/89856114-3dec-44d8-8516-7453ddc2cf54 /dev/disk/by-partuuid/8439ce70-c9dc-4c1d-a49d-0a516e7e37bc
        device /dev/disk/by-partuuid/7319fe45-bc39-41a8-b584-b1a939b292f6 /dev/disk/by-partuuid/d6ad47e0-31ae-4c23-b705-a4d861a2b6d3
        device /dev/disk/by-partuuid/7844dbd3-ab9a-4c0e-a45e-5a2fbe8cb76e /dev/disk/by-partuuid/c79f2053-6d7a-4c87-aa65-3d252ad34dc6
        device /dev/disk/by-partuuid/cbac86d4-339b-462c-9d2a-afe074918c19 /dev/disk/by-partuuid/024b50a1-b05f-448d-8c85-131e8cd8b487
        device /dev/disk/by-partuuid/0beb84fa-ec6a-4988-a4e6-e03d26ae9af8 /dev/disk/by-partuuid/aa7e38f5-f897-4b13-9154-65f271d4acbc
        device /dev/disk/by-partuuid/78bc332c-7921-45d9-8372-5cd7de749936 /dev/disk/by-partuuid/654b64b3-1d2d-4a1e-9af1-8c05939acefd
        device /dev/disk/by-partuuid/94b5c2c9-9814-4c2b-8dde-43d7a97c2191 /dev/disk/by-partuuid/650042f6-96ef-4692-8236-38deabdf0765
    }
}
```
Use PARTUUID for cluster partition commands
@robertglonek robertglonek merged commit aa1e5a1 into v7.7.2 Jan 31, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant