Can I set up an auto reindex


4 answers

1 accepted

0 votes
Accepted answer

No and there are should not be need for this. Re-index is heavy operation and you are expected to run it manually only when somehow the index was broken. All other times the issues are automatically re-indexed when you add/change/delete them.

This is not a good answer. Some JIRA instances, including ours, serve 10k users or more and experience hundreds of changes a week across hundreds of projects. Many of these changes call for a reindex.

One challenge is that background reindexing can take double or triple the time of a hard (locking) reindex, and is less efficient. When Background reindexing takes more than twelve hours, creeping into daytime hours on a system already struggling for resources, it's time to more regularly do a hard reindex - e.g. weekly - and this is why I am up right now, on a Saturday night.

Before you suggest moving to Data Center, we know. Cash and politics can delay such an upgrade for years in some cases. We work with what we have, which is large VMs for production, failover, and nonprod.

It would really help me to automate this otherwise manual weekly experience.

Hello Kay,

You can create a groovy script to start the reindex process, save it, create a service add the script and set it up to run at a certain time.

I agree with Kay - my reindex takes over 1 hour due to the sheer size of our platform.  I have to say i get a little tired of the Atlassian Point of View that says i must do this manually, in my own time out of hours on a platform with a number of homeworkers and international staff who want a lot of access hours.

This forces me to sit up at 10pm at night and hang around. That's a little ridiculous. I should be able to set something on the working day that will trigger it at Xhours and just leave a system banner to communicate that it will be coming down later.

Atlassian have said they want to be considered *an enterprise scale tool*, but these residual  "small system" mentality failings that are becoming a blocker for us.

I accept your answer.

However, the reason we need to do it as we have on-going problems with the Epic link being populated into subtasks on auto create of subtasks. We are on an older version so hopefully this problem is resolved in the newer version when we upgrade shortly.

Also, re-indexing is not actually that long a job on our system.

>  Epic link being populated into subtasks on auto create of subtasks

Sounds like some custom logic/addon and I guess that the problem is in the custom code.

Kay, have you looked into Curl, you can schedule reindexing via curl and windows scheduler.

Nice reference, Reto. Yeah, I found that over the weekend and it works fine. Only concern is that now we're storing an admin/password on the server somewhere. Not a huge concern as anybody who can get there can find a back door anyhow, but I wish it were hashable.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

205 views 4 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you