# Is there a way to force a replica to become primary?

**URL:** https://discuss.elastic.co/t/is-there-a-way-to-force-a-replica-to-become-primary/284958
**Category:** Elasticsearch
**Created:** [September 23, 2021, 5:25am UTC](https://discuss.elastic.co/t/is-there-a-way-to-force-a-replica-to-become-primary/284958 "2021-09-23T05:25:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)
#### Post date: [September 23, 2021, 5:25am UTC](https://discuss.elastic.co/t/is-there-a-way-to-force-a-replica-to-become-primary/284958/1 "2021-09-23T05:25:15Z")

</div>

Like my title suggested. Is it possible?  
My cluster has a rebalancing error where 1 primary shard is stuck in relocating state and I can't recover it.  
I'm hoping to force the replica to become the primary and configure the replica to 0 then back to 1.  
Is this possible?

---

<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: [October 21, 2021, 5:25am UTC](https://discuss.elastic.co/t/is-there-a-way-to-force-a-replica-to-become-primary/284958/2 "2021-10-21T05:25:33Z")

</div>

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