Reindex Jira server using REST API via cURL command

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

There are various type of REST Client that can be use. In this example, REST request was triggered from Linux's Terminal:


To trigger indexing and locking the instance:

curl -u admin_username:admin_password -X POST $JIRAURL/rest/api/2/reindex?type=FOREGROUND


 To trigger indexing without setting the type:

curl -u admin_username:admin_password -X POST $JIRAURL/rest/api/2/reindex

(info) The default value for the type is BACKGROUND_PREFFERED

(info) For JIRA DC a better approach than background indexing is to take one node out of the cluster and run FOREGROUND reindexing. See  JRASERVER-66969 - Getting issue details... STATUS


注意

Type of re-indexing available:

  • FOREGROUND - runs a lock/full reindexing
  • BACKGROUND - runs a background reindexing. If JIRA fails to finish the background reindexing, respond with 409 Conflict (error message).
  • BACKGROUND_PREFERRED  - If possible do a background reindexing. If it's not possible (due to an inconsistent index), do a foreground reindexing.
最終更新日 2019 年 9 月 25 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.