Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EBS Volume "in-use - optimizing"

I have an EBS volume that displays a state of "in-use - optimizing(%)". What does this mean? What are the optimizations that AWS is performing? This is on a 300gb encrypted gp2 volume attached to a Windows Server 2012 R2 EC2 instance.

in-use-optimizing

like image 847
Preston Martin Avatar asked May 03 '17 22:05

Preston Martin


People also ask

Can I use EBS volume while optimizing?

If you must modify the volume while it's still in the Optimizing state, then use the following workaround solution: Use an Amazon EBS snapshot to restore a new EBS volume of the desired configurations. You can use an existing snapshot or create a new snapshot.

What is AWS EBS optimization?

An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O. This optimization provides the best performance for your EBS volumes by minimizing contention between Amazon EBS I/O and other traffic from your instance.

Which EBS volume type should you configure to maximize performance?

To maximize the performance of gp3, we recommend using EBS-optimized EC2 instances. gp2 is the default EBS volume type for Amazon EC2 instances.


2 Answers

The in-use - optimizing state relates to EBS volume resizing.

  • in-use indicates that this volume is attached to an EC2 instance.
  • optimizing is the volume's modification state.

According to the AWS documentation on volume modifications:

An EBS volume being modified goes through a sequence of states. After you issue a ModifyVolume directive, whether from the console, CLI, API, or SDK, the volume enters first the Modifying state, then the Optimizing state, and finally the Complete state.

...

While the volume is in the optimizing state, your volume performance is in between the source and target configuration specifications. Transitional volume performance will be no less than the source volume performance. If you are downgrading IOPS, transitional volume performance is no less than the target volume performance.

And finally, from the introductory blog post for Volume Modifications:

The volume’s state reflects the progress of the operation (modifying, optimizing, or complete): volume status screenshot

like image 173
Luke Waite Avatar answered Oct 06 '22 00:10

Luke Waite


If you modified the volume, most likely it will show like that. The performance will be degraded during this time since AWS EBS server needs to sync data.

like image 30
user2655495 Avatar answered Oct 06 '22 00:10

user2655495