Giter VIP home page Giter VIP logo

Comments (12)

rocketraman avatar rocketraman commented on July 17, 2024

Actually I seem to have lost all the storage. Stranger and stranger.

from for-azure.

rocketraman avatar rocketraman commented on July 17, 2024
$ docker-diagnose
OK hostname=swarm-manager000000 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
OK hostname=swarm-manager000001 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
OK hostname=swarm-manager000002 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
OK hostname=swarm-worker000000 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
OK hostname=swarm-worker000001 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
OK hostname=swarm-worker000002 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
OK hostname=swarm-worker000003 session=1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
Done requesting diagnostics.
Your diagnostics session ID is 1489786294-n6v6K7yZVam3mHqrXtFEUHkchmEgUoiS
Please provide this session ID to the maintainer debugging your issue.

from for-azure.

ddebroy avatar ddebroy commented on July 17, 2024

Was the storage that you lost local volumes or volumes backed by cloudstor?

from for-azure.

rocketraman avatar rocketraman commented on July 17, 2024

Local volumes. Couldn't get cloudstor working properly.

from for-azure.

ddebroy avatar ddebroy commented on July 17, 2024

Local volumes do not survive upgrades since completely fresh nodes on fresh VHDs with the latest Moby OS and Docker engine are brought up. What was the issue that you ran into with cloudstor?

from for-azure.

rocketraman avatar rocketraman commented on July 17, 2024

Local volumes do not survive upgrades

Yikes, this deserves a big warning in the docs.

What was the issue that you ran into with cloudstor?

Honestly, I don't remember. I think at the time cloudstor was only available in the experimental channel, but when I installed it, I ran into other issues (not directly related to cloudstor). I may have created other related issues.

from for-azure.

friism avatar friism commented on July 17, 2024

@rocketraman out of curiosity, can I ask what you're using the node labels for?

from for-azure.

rocketraman avatar rocketraman commented on July 17, 2024

@friism I was using them in a poor man's attempt to get persistent storage working in the absence of support in Docker Swarm (via Cloudstor or other solution). For containers that required a persistent volume, I was attaching them to specific nodes via a node label. That way, if that container was stopped and recreated, the new container would be scheduled on the same node as the prior container, and thus have access to the same persistent volume.

This approach worked well, until I ran upgrade.sh!

from for-azure.

friism avatar friism commented on July 17, 2024

@rocketraman thanks, it's good to know that labels and volumes were part of the same problem for you. That means that if cloudstor does the job, you're ok.

I agree that it should be prominent in the docs that local Docker entities are not preserved during upgrades (nor are they preserved if a node goes down, for example). Only Docker Swarm entities (eg. services) are preserved. I'll try to update the docs.

We've also considered other options, such as blocking non-swarm API calls that are treacherous (for example to create local volumes), but it would be somewhat limiting.

I'd love to get more details on your use-case and how you'd like for this to work.

from for-azure.

rocketraman avatar rocketraman commented on July 17, 2024

I'd love to get more details on your use-case and how you'd like for this to work.

I think I was simply mistaken on just how ephemeral nodes in Docker Swarm for Azure are supposed to be, and thus approaching my problem the wrong way. Knowing what I know now, I wouldn't have bothered with attempting any type of persistence without having Cloudstor working.

The other use for node labels is, of course, having worker nodes with different capabilities e.g. high memory vs high cpu, and then using constraints to schedule containers appropriately. I don't believe this is currently possible with Docker for Azure.

And on a related note, I'd want to be able to manage different storage classes of Azure disk based on the type of data being stored, access patterns, and data replication requirements. So when a volume is created, I could decide which storage class applied and "schedule it" on to the appropriate Azure storage. I also don't believe Docker for Azure / Cloudstor is capable of doing this yet.

from for-azure.

ddebroy avatar ddebroy commented on July 17, 2024

Cloudstor on Azure today indeed lacks an option to provision different classes of storage mainly due to Azure platform limitations around exposing Premium Storage options over SMB. We have provided feedback to our Azure contacts to introduce premium storage options to VM Scale Sets either over attachable/detachable regular disks or File Storage. So we will have this in the future in Cloudstor once we get the underlying platform support. Today, only Cloudstor on Docker for AWS supports a MaxIO option for higher throughput and IOPs.

from for-azure.

ddebroy avatar ddebroy commented on July 17, 2024

Closing this since the original issue is by design.

from for-azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.