# How can I split a service into few services?

**URL:** <https://community.dynatrace.com/t/how-can-i-split-a-service-into-few-services/19900>\
**Category:** Open Q&A\
**Tags:** services-classic, process-groups, java\
**Created:** [March 7, 2019, 8:30am UTC](https://community.dynatrace.com/t/how-can-i-split-a-service-into-few-services/19900 "2019-03-07T08:30:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [March 7, 2019, 8:30am UTC](https://community.dynatrace.com/t/how-can-i-split-a-service-into-few-services/19900/1 "2019-03-07T08:30:53Z")

</div>

Currently:

1. **Create new process** - achievable via ‘custom process group detection rules’

2. **Create new service** - achievable via ‘custom service detection’

3. **Split a process group into multiple process groups** - achievable via ‘Process group detection flags’ and/or ‘Process group detection rules’

4. **Split a service into multiple services** - _any suggestion?_

Best Regards,

Wai Keat

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [March 7, 2019, 8:46am UTC](https://community.dynatrace.com/t/how-can-i-split-a-service-into-few-services/19900/2 "2019-03-07T08:46:28Z")

</div>

Basically your number 1-3 cover all the use cases. If you have a service you want to split into more fine grained services you can create a new service via _custom service detection_.

Any specific use case you have in mind?

---

<div class="post-metadata">

**Author:** ![michael\_kopp](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michael_kopp/32/13415_2.png) [@michael\_kopp](https://community.dynatrace.com/u/michael_kopp)\
**Post date:** [April 16, 2019, 1:50pm UTC](https://community.dynatrace.com/t/how-can-i-split-a-service-into-few-services/19900/3 "2019-04-16T13:50:29Z")

</div>

May I ask what the use case is here?

\* Splitting a PG means that the processes involved are actually separate deployments. A PG is a group of processes that form a cluster and deliver the same functionality. This one splits it because this is not the case.

\* a custom service is something different. It is meant to define a service for deployed services that dynatrace does not automatically detect. While it can be used as a workaround for splitting, that is not the use case here.

Thus it all depends on what your use case is, why is it that you need to split a specific service. Just splitting for splitting sake is not something we encourage.

Best

Mike

---

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [April 18, 2019, 2:51am UTC](https://community.dynatrace.com/t/how-can-i-split-a-service-into-few-services/19900/4 "2019-04-18T02:51:10Z")

</div>

Hi all,

I’ve managed to achieve what I want to achieve by simply using process group detection.

Long story short, after rounds of discussion we find that the problem is: There is one java process for each country, but OneAgent groups them all together into one.

So, I use process group detection to split out the one java process into multiple java processes by using parameter that is unique to each country. Finally with a little creativity in service-naming rule, problem solved.

In the end, I get mutiple service with the name blablabla\_TH, blablabla\_MY, blablabla\_SG, blablabla\_PH and few others.
