# Split Service into 2 Sub-Services

**URL:** <https://community.dynatrace.com/t/split-service-into-2-sub-services/35647>\
**Category:** Open Q&A\
**Tags:** services-classic\
**Created:** [June 28, 2022, 7:06pm UTC](https://community.dynatrace.com/t/split-service-into-2-sub-services/35647 "2022-06-28T19:06:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [June 28, 2022, 7:06pm UTC](https://community.dynatrace.com/t/split-service-into-2-sub-services/35647/1 "2022-06-28T19:06:53Z")

</div>

Hi All,

I have a specific case:

I have the same process running into two different Hosts (With the same process group name).

I want to split the service depeding on the Host (because those two Hosts have two different functions).

Note: The hosts have a different Host group.

 ![Malaik_0-1656443174430.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/6/66ccd128032883c47c62c768eca32488a5cd5092.png)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 28, 2022, 7:23pm UTC](https://community.dynatrace.com/t/split-service-into-2-sub-services/35647/2 "2022-06-28T19:23:27Z")

</div>

You need to split the process group. Using host groups is the easiest and preferred method of solving your case and they are just for this purpose.

Just choose one of the hosts and set the host group on that host and restart your applications.&nbsp; The processes will get different IDs and won’t be part of the same process group.

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [June 29, 2022, 5:17am UTC](https://community.dynatrace.com/t/split-service-into-2-sub-services/35647/3 "2022-06-29T05:17:10Z")

</div>

Thanks&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;for your quick support.

Yes this is what I did, Adding host group, but restarting the application is mandatory?

I will try to restart now, because the PG have always the same name in both hosts.

Have a good day.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 29, 2022, 7:52am UTC](https://community.dynatrace.com/t/split-service-into-2-sub-services/35647/4 "2022-06-29T07:52:42Z")

</div>

[@Malaik](https://community.dynatrace.com/user/23195)&nbsp;restarting is mandatory. Processes will get new IDs on restart only.
