Bug 1099736 - Increase cache retention for statistics
Summary: Increase cache retention for statistics
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-Persistence, Performance
Version: 3.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.5
Assignee: Alex Eng
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-21 05:37 UTC by Carlos Munoz
Modified: 2015-01-26 23:27 UTC (History)
3 users (show)

Fixed In Version: 3.5.0-SNAPSHOT (git-server-3.4.1-52-g47cdeb5)
Doc Type: Bug Fix
Doc Text:
Story Points: 3
Clone Of:
Environment:
Last Closed: 2015-01-26 23:27:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1088126 0 unspecified CLOSED RFE: Improve statistics performance. 2021-02-22 00:41:40 UTC

Internal Links: 1088126

Description Carlos Munoz 2014-05-21 05:37:57 UTC
Statistic cache elements should overflow to disk. They should be wiped upon app startup, and last as long as the server is running.
Ensure that there is a way of clearing the stats cache individually.
Cache generation is currently happening on-demand.

Comment 1 Carlos Munoz 2014-05-21 05:48:24 UTC
Maybe we should make the cache eternal, as long as there is a way of clearing the cache.

Testing:
- Performance (lacking base line for performance testing)
- Some level of stats regression testing

Comment 2 Sean Flanigan 2014-05-22 07:46:50 UTC
We need to make sure the cache isn't flushed to disk synchronously on every single update, or translation updates will probably become too expensive.

Some options which might help:

1. Enable async writes: http://ehcache.org/documentation/2.5/apis/write-through-caching

2. Only flush to disk: http://ehcache.org/documentation/2.5/faq#how-do-i-get-a-memory-only-cache-to-persist-to-disk-between-vm-restarts

Comment 3 Alex Eng 2014-05-29 03:22:10 UTC
Pull request:
https://github.com/zanata/zanata-server/pull/460

Comment 4 Ding-Yi Chen 2014-06-02 04:43:53 UTC
A few more issues:

 * Property ehcache.disk.store.dir should be given.
   * Installation guide should be updated.
   * zanata-setup.sh should be updated.
 * The cache will not be wiped out during server restart.
 * The cache will updated on events on
   * Translator translates a new string.
   * Translator clear a string.
   * Translator change state from FUZZY -> Translated
   * Review change state from Translated -> Rejected.

Comment 5 Ding-Yi Chen 2014-06-03 00:26:45 UTC
VERIFIED with Zanata 3.5.0-SNAPSHOT (git-server-3.4.1-52-g47cdeb5)


Note You need to log in before you can comment on or make changes to this bug.