# Storage process being assigned log roles automatically

**URL:** <https://forums.foundationdb.org/t/storage-process-being-assigned-log-roles-automatically/2170>\
**Category:** Running FoundationDB\
**Created:** [June 8, 2020, 10:53am UTC](https://forums.foundationdb.org/t/storage-process-being-assigned-log-roles-automatically/2170 "2020-06-08T10:53:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishgupta](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@ashishgupta](https://forums.foundationdb.org/u/ashishgupta)\
**Post date:** [June 8, 2020, 10:53am UTC](https://forums.foundationdb.org/t/storage-process-being-assigned-log-roles-automatically/2170/1 "2020-06-08T10:53:48Z")

</div>

Hi,  
I have a 5 machine cluster, triple replication, 1 SSD per machine. I have the following process class configuration:  
machine 1: 2 storage, 2 stateless  
machine 2: 2 storage, 2 stateless  
machine 3: 2 storage, 2 stateless  
machine 4: 2 storage, 1 proxy, 1 stateless  
machine 5: 1 log, 3 stateless

I’d made this configuration after referring to [https://forums.foundationdb.org/t/questions-about-process-classes-recruitment-behavior-and-cluster-configuration/1177](https://forums.foundationdb.org/t/questions-about-process-classes-recruitment-behavior-and-cluster-configuration/1177). But I keep noticing my storage classes also being assigned log roles, automatically, leading to a warning that it’s not ideal to have the same process be both a storage and a log process.  
How do I avoid this from happening? Any ideas where I’m going wrong?

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://forums.foundationdb.org/u/gaurav)\
**Post date:** [June 8, 2020, 1:19pm UTC](https://forums.foundationdb.org/t/storage-process-being-assigned-log-roles-automatically/2170/2 "2020-06-08T13:19:28Z")

</div>

How many tlogs are there in the cluster - probably 3+ due to triple replication ? There appears to be only a single fdb process with log class; so if there are more tlogs then they will go to other fdbservers. From what you’ve configured, `storage` seems like the next best alternate class for them.

See this post for more details:

> [@Roles / Classes matrix](https://forums.foundationdb.org/t/roles-classes-matrix/1340):
>
> Hi All, based on suggestions from a github issue, I am posting a visual representation of class/roles fitness matrix, and fitness ordering matrix: @alexmiller @ajbeamon going through this matrix again, a few questions came up that I had probably not thought about earlier: How does FDB decide how many SS to recruit in the cluster? Will it try to recruit one SS on each process class where it is allowed to do so (that is everything except for those with NeverFit)? Specifically, will …

---

<div class="post-metadata">

**Author:** ![ashishgupta](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@ashishgupta](https://forums.foundationdb.org/u/ashishgupta)\
**Post date:** [June 8, 2020, 3:19pm UTC](https://forums.foundationdb.org/t/storage-process-being-assigned-log-roles-automatically/2170/3 "2020-06-08T15:19:03Z")

</div>

Ah, rookie mistake. This makes sense. Useful post too, will check it out.
