# Max number of Spaces and Roles in Kibana

**URL:** https://discuss.elastic.co/t/max-number-of-spaces-and-roles-in-kibana/316933
**Category:** Kibana
**Created:** [October 18, 2022, 8:30pm UTC](https://discuss.elastic.co/t/max-number-of-spaces-and-roles-in-kibana/316933 "2022-10-18T20:30:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tifty](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tifty](https://discuss.elastic.co/u/tifty)
#### Post date: [October 18, 2022, 8:30pm UTC](https://discuss.elastic.co/t/max-number-of-spaces-and-roles-in-kibana/316933/1 "2022-10-18T20:30:20Z")

</div>

Hi everyone,  
Is there a max limit to consider for creating Spaces and Roles in Kibana. Moreover, should I worry about cluster performance if I keep increasing number of spaces.

Thanks

---

<div class="post-metadata">

### Author: ![drewdaemon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewdaemon/32/97779_2.png) [@drewdaemon](https://discuss.elastic.co/u/drewdaemon)
#### Post date: [October 19, 2022, 7:14pm UTC](https://discuss.elastic.co/t/max-number-of-spaces-and-roles-in-kibana/316933/2 "2022-10-19T19:14:47Z")

</div>

The max number of spaces is [configurable](https://www.elastic.co/guide/en/kibana/current/spaces-settings-kb.html) and defaults to 1000.

Spaces should have no impact on cluster performance since they are not an Elasticsearch construct (Kibana only).

Looks like there's no limit other than disk space to the number of roles ([source](https://discuss.elastic.co/t/total-limits-of-users-and-roles-while-using-x-pack-plugin/127066)).

As far as roles impacting performance: my colleague says that hundreds is fine, millions is likely to have some impact. Numbers in the middle might have limited impact—you'd just have to feel your way.

Let me know if this helps!

---

<div class="post-metadata">

### Author: ![tifty](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tifty](https://discuss.elastic.co/u/tifty)
#### Post date: [October 21, 2022, 5:00pm UTC](https://discuss.elastic.co/t/max-number-of-spaces-and-roles-in-kibana/316933/3 "2022-10-21T17:00:22Z")

</div>

Thanks for sharing @drewdaemon

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 18, 2022, 5:00pm UTC](https://discuss.elastic.co/t/max-number-of-spaces-and-roles-in-kibana/316933/4 "2022-11-18T17:00:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
