# Running v2 extension on a certain ActiveGate inside a group?

**URL:** <https://community.dynatrace.com/t/running-v2-extension-on-a-certain-activegate-inside-a-group/48352>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [October 15, 2024, 7:34pm UTC](https://community.dynatrace.com/t/running-v2-extension-on-a-certain-activegate-inside-a-group/48352 "2024-10-15T19:34:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 15, 2024, 7:34pm UTC](https://community.dynatrace.com/t/running-v2-extension-on-a-certain-activegate-inside-a-group/48352/1 "2024-10-15T19:34:28Z")

</div>

For scalability reasons, I have ActiveGate groups with more than one ActiveGate.

Now, I have several EF2 extensions running on those groups, and it works well.

But, now I need to have a particular EF2 extension running on a specific ActiveGate, for several reasons.

It would be great to have an ActiveGate belong to several groups, but that is not possible. I also cannot change the group because that would break the other extensions.

In EF1, I just had to install it in the ActiveGate I wanted…

What would be the best way to achieve this with EF2? Using fastcheck?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 15, 2024, 10:48pm UTC](https://community.dynatrace.com/t/running-v2-extension-on-a-certain-activegate-inside-a-group/48352/2 "2024-10-15T22:48:26Z")

</div>

Using fastcheck would indeed be the way to solve this. I’d go with checking for the existence of a specific file for example if I were you, that way you don’t have to hardcode the AG name into the extension.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 16, 2024, 10:12pm UTC](https://community.dynatrace.com/t/running-v2-extension-on-a-certain-activegate-inside-a-group/48352/3 "2024-10-16T22:12:12Z")

</div>

[@Mike\_L](https://community.dynatrace.com/user/11520),

Never had used fastcheck before, and it seems to work well. I do believe though that we need an AG to eventually belong to more than one group: [https://community.dynatrace.com/t5/Product-ideas/Activegate-belonging-to-several-groups/idi-p/259362](https://community.dynatrace.com/post/259362)

Interestingly, I discovered that it only runs the first time. It I update a monitoring configuration, it doesn’t run again. But I can live with that 😁

So, when what cases does fastcheck run again? When restarting the extensions module? In any other cases?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 16, 2024, 10:22pm UTC](https://community.dynatrace.com/t/running-v2-extension-on-a-certain-activegate-inside-a-group/48352/4 "2024-10-16T22:22:00Z")

</div>

Whenever the cluster needs to re-validate what AG will execute the extension, so during communication loss and when you go over the hard usage limit.
