# Amazon FIS exeperiment limit question for EC2 machines

**URL:** <https://awshq.com/t/amazon-fis-exeperiment-limit-question-for-ec2-machines/15731>\
**Category:** AWS Compute Discussion\
**Tags:** ec2\
**Created:** [October 25, 2022, 8:52am UTC](https://awshq.com/t/amazon-fis-exeperiment-limit-question-for-ec2-machines/15731 "2022-10-25T08:52:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhuk-Pauk](https://awshq.com/letter_avatar_proxy/v4/letter/z/258eb7/32.png) [@Zhuk-Pauk](https://awshq.com/u/Zhuk-Pauk)\
**Post date:** [October 25, 2022, 8:52am UTC](https://awshq.com/t/amazon-fis-exeperiment-limit-question-for-ec2-machines/15731/1 "2022-10-25T08:52:29Z")

</div>

I have a problem with FIS experimentation limitation and need help. I need to somehow make an experiment to deactivate all services connected to my EC2 machines. It’s ~93 targets. I am running them using Java SDK for this cause. First I tried to make a single experiment with 93 targets. It threw an exception stating that there is a limit of 5 targets per experiment. Then, I changed the approach and created a program that would run X experiments where X is the amount of targets / 5. After doing that, I got an exception saying that I can’t run more than 5 experiments. So, that basically means I can only run 25 targets by this method (5 experiments each with 5 targets). Any idea how I can expand that? Can I put some kind of pause in my code that it would wait until running next experiments, so, the number won’t exceed 5 of them or it counts experiments per session? And is there some way to simulate a new session if thats the case? Or any other way to buypass that limit?

* * *

**Related discussions:**

- [I’m an AWS newbie. If I totally hose an EC2 instance, can I just restore a snapshot and be like nothing happened?](https://awshq.com/t/im-an-aws-newbie-if-i-totally-hose-an-ec2-instance-can-i-just-restore-a-snapshot-and-be-like-nothing-happened/12245)
- [Best EC2 instance size for a self-hosted Supabase production backend — t4g.large or 4 vCPU/16 GB?](https://awshq.com/t/best-ec2-instance-size-for-a-self-hosted-supabase-production-backend-t4g-large-or-4-vcpu-16-gb/21558)
- [Confused about what happens when the new free tier ends](https://awshq.com/t/confused-about-what-happens-when-the-new-free-tier-ends/21741)
- [Launching FreeBSD/EC2 desktop AMIs](https://awshq.com/t/launching-freebsd-ec2-desktop-amis/21608)
- [Scoping SSO Session Perms](https://awshq.com/t/scoping-sso-session-perms/21586)

---

<div class="post-metadata">

**Author:** ![frgiaws](https://awshq.com/letter_avatar_proxy/v4/letter/f/82dd89/32.png) [@frgiaws](https://awshq.com/u/frgiaws)\
**Post date:** [October 25, 2022, 3:12pm UTC](https://awshq.com/t/amazon-fis-exeperiment-limit-question-for-ec2-machines/15731/2 "2022-10-25T15:12:53Z")

</div>

[https://docs.aws.amazon.com/fis/latest/userguide/fis-quotas.html](https://docs.aws.amazon.com/fis/latest/userguide/fis-quotas.html) limits are here

---

<div class="post-metadata">

**Author:** ![Zhuk-Pauk](https://awshq.com/letter_avatar_proxy/v4/letter/z/258eb7/32.png) [@Zhuk-Pauk](https://awshq.com/u/Zhuk-Pauk)\
**Post date:** [October 25, 2022, 7:40pm UTC](https://awshq.com/t/amazon-fis-exeperiment-limit-question-for-ec2-machines/15731/3 "2022-10-25T19:40:31Z")

</div>

So far what I found as a solution is taking the time I use for a single action, dividing it by 5, and calling a thread sleep after each call of the experiment to always have no more than 5 experiments active, but that approach seems to be very naive. And also doesn’t solve the issue that I need to run the packet loss action on all ec2 machines simultaneously.

---

<div class="post-metadata">

**Author:** ![Zhuk-Pauk](https://awshq.com/letter_avatar_proxy/v4/letter/z/258eb7/32.png) [@Zhuk-Pauk](https://awshq.com/u/Zhuk-Pauk)\
**Post date:** [October 28, 2022, 3:47pm UTC](https://awshq.com/t/amazon-fis-exeperiment-limit-question-for-ec2-machines/15731/4 "2022-10-28T15:47:19Z")

</div>

The solution that end up satisfying my needs was the SSM manager. It was able to execute the same commands as FIS but without limitation for targets.
