- Newest
- Most votes
- Most comments
You've encountered an important issue with AWS Glue and Elastic Network Interfaces (ENIs). Let's address your questions:
-
Yes, typically when an AWS Glue job completes, the ENIs created for that job should be automatically released and deleted. This is the expected behavior under normal circumstances.
-
The fact that ENIs are accumulating in an available state after your Glue jobs complete indicates that there might be an issue with the cleanup process. This is not the normal behavior and suggests a potential problem that needs to be investigated.
There are a few possible reasons for this situation:
-
Job Configuration: Ensure that your Glue job is properly configured to release resources after completion. Check the job parameters and settings to make sure there's nothing preventing the proper cleanup.
-
VPC Configuration: If your Glue job is running in a VPC, make sure the VPC settings are correct and not interfering with the ENI release process.
-
AWS Glue Service Issue: There could be a service-side issue with AWS Glue that's preventing the automatic cleanup of ENIs. This is less likely but still possible.
-
Permissions: Verify that the IAM role associated with your Glue job has the necessary permissions to release ENIs.
To address this issue:
-
Contact AWS Support: Given the scale of the problem (1,200 accumulated ENIs), it's advisable to open a support ticket with AWS. They can investigate if there's a service-side issue or provide specific guidance for your account.
-
Monitor Job Status: Ensure your jobs are completing successfully. Failed or timed-out jobs might not properly release resources.
-
Implement a Cleanup Process: As a temporary workaround, you could implement an automated process to clean up unused ENIs periodically. However, be cautious and ensure you're only deleting ENIs that are truly not in use.
-
Review Job Configurations: Double-check your Glue job configurations, especially any custom scripts or code, to ensure they're not inadvertently preventing ENI release.
Remember, manually deleting available ENIs is a temporary solution. The root cause needs to be identified and addressed to prevent this issue from recurring and to ensure your Glue jobs operate efficiently without manual intervention.
Sources
Scale AWS Glue jobs by optimizing IP address consumption and expanding network capacity using a private NAT gateway | AWS Big Data Blog
I got the error like "Elastic network interface limit is exceeded. Please increase your elastic network interface limit" | AWS re:Post
Relevant content
asked 3 years ago
