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

Support for multi-subnet fleets. #115

Open
bethac07 opened this issue Nov 4, 2020 · 2 comments
Open

Support for multi-subnet fleets. #115

bethac07 opened this issue Nov 4, 2020 · 2 comments

Comments

@bethac07
Copy link
Collaborator

bethac07 commented Nov 4, 2020

No description provided.

@ErinWeisbart
Copy link
Member

Depending on how your subnets are set up, you may have limitations on the number of machines you can use in the subnets because IPs are limited.
Would also simplify troubleshooting when the machine types you want are limited in availability.

Can probably fix by restructuring fleet file. (Make a dummy request in the console and copy that structure to our fleet file).

@ErinWeisbart
Copy link
Member

ErinWeisbart commented Oct 8, 2024

Tried this config to get rid of subnet. Worked once. Second time gave me
spotFleetRequestConfigurationInvalid : m5.xlarge, ami-fad25980, Linux/UNIX: Security group sg-GROUP and subnet subnet-SUBNET belong to different networks.

{
"IamFleetRole": "arn:aws:iam::XXXXXXXXXXXX:role/aws-ec2-spot-fleet-role",
"AllocationStrategy": "lowestPrice",
"TerminateInstancesWithExpiration": true,
"LaunchSpecifications": [
        {
        "ImageId": "ami-fad25980",
        "KeyName": "KEYNAME",
        "IamInstanceProfile": {
                "Arn": "arn:aws:iam::XXXXXXXXXXXX:instance-profile/ecsInstanceRole"
        },
        "BlockDeviceMappings": [
        {
                        "DeviceName": "/dev/xvda",
                        "Ebs": {
                        "DeleteOnTermination": true,
                        "VolumeType": "gp2",
                        "VolumeSize": 8,
                        "SnapshotId": "snap-04007a196c0f3f398"
                }
                },
                {
                "DeviceName": "/dev/xvdcz",
                "Ebs": {
                        "DeleteOnTermination": true,
                        "VolumeType": "gp2"
                }
                }
        ],
        "SecurityGroups": [{"GroupId":"sg-ZZZZZZZZZ"}]
                }
        ],
"Type": "maintain"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants