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

Ability to resize PVCs used in a PravegaCluster #101

Closed
vedanthh opened this issue Nov 28, 2018 · 2 comments
Closed

Ability to resize PVCs used in a PravegaCluster #101

vedanthh opened this issue Nov 28, 2018 · 2 comments
Labels
kind/enhancement Enhancement of an existing feature priority/P2 Slight inconvenience or annoyance to applications, system continues to function status/needs-investigation Further investigation is required

Comments

@vedanthh
Copy link

Increasing Journal,Cache and ledgers size not reflecting for new/scaledup bookie and segmentstore using kubectl edit

Snip:

kubectl edit PravegaCluster nautilus -n nautilus-pravega
    storage:
      journalVolumeClaimTemplate:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 500Gi -- increased from 250 Gi
      ledgerVolumeClaimTemplate:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 500Gi -- increased from 250Gi
  pravega:
    cacheVolumeClaimTemplate:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 200Gi -- increased from 100 Gi
[root@manager1 ~]# kubectl get pvc --all-namespaces
NAMESPACE          NAME                                            STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE

nautilus-pravega   cache-nautilus-segmentstore-3                   Bound     pvc-49da332c-f2de-11e8-b82a-005056bd38d8   100Gi      RWO            standard       58m
nautilus-pravega   cache-nautilus-segmentstore-4                   Bound     pvc-b67443d3-f2e0-11e8-b82a-005056bd38d8   100Gi      RWO            standard       41m
nautilus-pravega   cache-nautilus-segmentstore-5                   Bound     pvc-b67443d3-f2e0-11e8-b82a-005056bd38d8   100Gi      RWO            standard       42m

nautilus-pravega   journal-nautilus-bookie-3                       Bound     pvc-49d3457c-f2de-11e8-b82a-005056bd38d8   250Gi      RWO            standard       58m
nautilus-pravega   journal-nautilus-bookie-4                       Bound     pvc-f1ee7509-f2df-11e8-b82a-005056bd38d8   250Gi      RWO            standard       46m
nautilus-pravega   journal-nautilus-bookie-5                       Bound     pvc-32263446-f2e0-11e8-b82a-005056bd38d8   250Gi      RWO            standard       45m

nautilus-pravega   ledger-nautilus-bookie-3                        Bound     pvc-49d3fff1-f2de-11e8-b82a-005056bd38d8   250Gi      RWO            standard       58m
nautilus-pravega   ledger-nautilus-bookie-4                        Bound     pvc-f1ef09f7-f2df-11e8-b82a-005056bd38d8   250Gi      RWO            standard       46m
nautilus-pravega   ledger-nautilus-bookie-5                        Bound     pvc-32268e3a-f2e0-11e8-b82a-005056bd38d8   250Gi      RWO            standard       45m

[root@manager1 ~]# kubectl -n nautilus-pravega exec -it nautilus-bookie-5 -- /bin/sh
/opt/bookkeeper # df -h
Filesystem                Size      Used Available Use% Mounted on
overlay                   9.7G      5.3G      3.9G  58% /
tmpfs                    64.0M         0     64.0M   0% /dev
tmpfs                     1.9G         0      1.9G   0% /sys/fs/cgroup
/dev/sdj                246.0G     59.1M    233.4G   0% /bk/journal
/dev/sdi                246.0G     59.1M    233.4G   0% /bk/ledgers
@vedanthh vedanthh changed the title ncreasing Journal,Cache and ledgers size not reflecting for new/scaledup bookie and segmentstore using kubectl edit Increasing Journal,Cache and ledgers size not reflecting for new/scaledup bookie and segmentstore using kubectl edit Nov 28, 2018
@adrianmo adrianmo added kind/enhancement Enhancement of an existing feature priority/P2 Slight inconvenience or annoyance to applications, system continues to function status/ready The issue is ready to be worked on; or the PR is ready to review labels Nov 28, 2018
@adrianmo adrianmo changed the title Increasing Journal,Cache and ledgers size not reflecting for new/scaledup bookie and segmentstore using kubectl edit Ability to resize PVCs used in a PravegaCluster Feb 22, 2019
@adrianmo
Copy link
Contributor

In order to resize PVCs in a Pravega cluster managed by the operator, we need to:

  1. Make sure the underlying block storage provider supports volume resizing.
  2. Create the operator logic to identify when a user is attempting to resize a PVC.
  3. Wait until the PVC condition to changes to FileSystemResizePending
  4. Restart all affected pods for the PVC resizing to be applied (maybe sequentially to avoid downtime)
  5. Check that the PVC size has changed

Related links:

@adrianmo adrianmo added status/needs-investigation Further investigation is required and removed status/ready The issue is ready to be worked on; or the PR is ready to review labels May 30, 2019
@adrianmo adrianmo removed their assignment May 30, 2019
@adrianmo adrianmo added kind/feature New feature area/controller Issue related to the operator controller and removed kind/enhancement Enhancement of an existing feature labels May 30, 2019
@pbelgundi pbelgundi added kind/enhancement Enhancement of an existing feature and removed area/controller Issue related to the operator controller kind/feature New feature labels May 6, 2020
@pbelgundi
Copy link
Contributor

Moved to Bookkeeper-Operator: pravega/bookkeeper-operator#40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Enhancement of an existing feature priority/P2 Slight inconvenience or annoyance to applications, system continues to function status/needs-investigation Further investigation is required
Projects
None yet
Development

No branches or pull requests

3 participants