containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[ECS] Support for FSx for Lustre in ECS on EC2 and Fargate

Open coultn opened this issue 4 years ago • 25 comments

Similarly to our upcoming support for EFS, we are considering support for FSx for Lustre filesystems within an ECS task definition. A sample task definition may look like the following (subject to change as we work on the design):

{
    "family": "my-task-with-fsx",
    "volumes": [
        {
          "name": "myFSxVolume",
          "FSxLustreVolumeConfiguration": {
                "filesystem": "fs-1234"
            }
        }
    ],
    "containerDefinitions": [
        {
           "name": "container-using-fsx",
           "mountPoints": [
               {
                   "sourceVolume": "myFSxVolume",
                   "containerPath": "/mount/fsx",
                   "readOnly": true
               }
        ]
    }
   ]
}

coultn avatar Dec 13 '19 17:12 coultn

Hey @coultn this sounds awesome.

Could you briefly explain why would someone use EFS instead of FSx and vice versa for task definitions in ECS?

Thanks and keep up the good work!

dimisjim avatar Dec 25 '19 14:12 dimisjim

EFS and FSx for Lustre have different capabilities, performance characteristics, and different pricing models. FSx for Lustre is "is optimized for data processing, with sub-millisecond latencies and throughput that scales to hundreds of gigabytes per second." EFS is oriented towards customers who need a more traditional shared filesystem: "Amazon EFS provides secure access for thousands of connections for Amazon EC2 instances and on-premises servers simultaneously using a traditional file permissions model, file locking capabilities, and hierarchical directory structure via the NFSv4 protocol. "

coultn avatar Jan 03 '20 00:01 coultn

With the EKS CSI driver support for lustre, seems logical that ECS should have support as well.

unicomp22 avatar Jan 07 '20 16:01 unicomp22

Any ETA as to when this (FSx for Luster) will make into the ECS/Fargate supported CSI? We have a lot of containerized use cases that requires high performance data processing.

linuxus avatar Feb 12 '20 21:02 linuxus

Does anything prevent me from installing/using fsx for lustre within a firecracker vm guest instance? The same way I would install/use it in an ec2 instance?

unicomp22 avatar Feb 13 '20 19:02 unicomp22

One use case we have for FSx on Fargate is workflows using Step Functions that invoke fargate to dynamically mount an FSx drive to do a task. We do this currently with Batch but I would like to switch to Fargate. We installed Luster drivers on an AMI that we use in Batch and have our code in the docker do the mount.

leedahl avatar May 18 '20 16:05 leedahl

Does Fargate support FSx Luster?

Sidra avatar Oct 29 '20 23:10 Sidra

Repeating @Sidra's questions from above: Does Fargate support FSx Luster?

michel-dance avatar Mar 02 '21 16:03 michel-dance

No, it does not.

coultn avatar Mar 02 '21 16:03 coultn

Hi, any updates on this? we would really really love to have this capability. FSx makes a whole lot more sense for our use case than EFS due to price/performance characteristics

gilbahat avatar Oct 09 '21 15:10 gilbahat

Hi folks. Bumping this thread for visibility. Is there any rough ETA or update on the FSx Lustre support for Fargate?

trahloff avatar Feb 28 '22 08:02 trahloff

Wondering about this but for FSx OnTap and/or custom NetApp OnTap from the AWS marketplace.

nwesoccer avatar Apr 13 '22 16:04 nwesoccer

I am also wondering about support for FSx Lustre on ECS Fargate.

MikeKroell avatar Aug 29 '22 12:08 MikeKroell

Fargate can mount EFS over NFS, so I'm curious why there's no way to mount other NFS endpoints including FSx

jackivanov avatar Sep 21 '22 16:09 jackivanov

Any updates on this issue?

MikeKroell avatar Jan 19 '23 16:01 MikeKroell

This is badly needed. Any update on when this will be implemented?

lavisht22 avatar Mar 10 '23 04:03 lavisht22

Yes please. When is this coming?

bradmccormack avatar May 25 '23 04:05 bradmccormack

We just ran into this issue and it caused significant pain. This 3.5 year old request is still highly relevant.

rurounijones avatar Jun 30 '23 08:06 rurounijones

+1 for this - we also have a use case that better suits FSx and Fargate. EFS performance does not work for us.

matthewmarinovich avatar Nov 10 '23 09:11 matthewmarinovich

This would be incredibly helpful to enable us to leverage ECS for many more things

daltschu22 avatar Nov 10 '23 18:11 daltschu22

This would be incredibly useful for our use-case.

myrlyn avatar Jan 23 '24 14:01 myrlyn

Not sure if this is ever going to land, this feature is highly anticipated.

ajitpdevops avatar Feb 21 '24 11:02 ajitpdevops

Does Fargate support FSx Luster?

No, that's where the struggle is.

ajitpdevops avatar Feb 21 '24 12:02 ajitpdevops

For those who need a workaround, and are doing Tasks, SageMaker Training jobs are somewhat like Fargate Tasks, and does support mounting FSx...

matthost avatar Mar 11 '24 23:03 matthost

This feature would help us boost our software architecture by 10x

RajarsiGit avatar Apr 14 '24 08:04 RajarsiGit