Can that cache in ‘review_site/cache’ be deleted?

144 views
Skip to first unread message

Z

unread,
Sep 7, 2021, 3:58:34 AM9/7/21
to Repo and Gerrit Discussion
Hi,teams:

     That cache in review_site/cache are very large and slow to read on disk.
     After config the gerrit.config about cache,they can be deleted and how to rewrite autoly?

Thanks.

Matthias Sohn

unread,
Sep 7, 2021, 4:26:06 AM9/7/21
to Z, Repo and Gerrit Discussion
In general Gerrit uses caches to improve performance. This means flushing or deleting caches can have performance
impact until caches are re-populated.

You can delete persistent caches using init --delete-caches [1]. Note that some caches are expensive to recreate (e.g. diff caches).
Find details about Gerrit caches here [2]. In-memory cache content can be flushed using the gerrit flush-cache command [3].
Caches are automatically re-populated according to their configuration [2].


-Matthias


Thanks.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/e8a39c3b-3a28-450e-b73a-5bd44325f98fn%40googlegroups.com.

Z

unread,
Sep 8, 2021, 9:15:42 PM9/8/21
to Repo and Gerrit Discussion
Thanks for reply.

Which caches  ‘In-memory’ and  ‘In-disk’  can be more helpful for gerrit?

And what is the standard of configuration for ‘In-memory’ and  ‘In-disk’  in gerrit.config?

Thank you very much.


Matthias Sohn 在 2021年9月7日 星期二下午4:26:06 [UTC+8] 的信中寫道:

Matthias Sohn

unread,
Sep 12, 2021, 4:44:06 AM9/12/21
to Z, Repo and Gerrit Discussion
On Thu, Sep 9, 2021 at 3:15 AM Z <vista...@gmail.com> wrote:
Thanks for reply.

please avoid top posting on this list
 
Which caches  ‘In-memory’ and  ‘In-disk’  can be more helpful for gerrit?

You can monitor the cache hit rates using the ssh gerrit show-caches command [4] and monitoring [5]
and then tune them to your workload. You can also use the dashboards in [5] with an on-premise installation
of Prometheus and Grafana.
 
And what is the standard of configuration for ‘In-memory’ and  ‘In-disk’  in gerrit.config?

Reply all
Reply to author
Forward
0 new messages