Commit Graph

16 Commits

Author SHA1 Message Date
konstantina.galouni 0bf05409cc [Trunk | Cache]: cache.js: In longCachingRequests add "/api/communities/" (zenodo communities request) and "/openaire/contexts/" (communities with status info).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59649 d315682c-612b-4755-9ff5-7f18f6832af3
2020-10-20 14:53:26 +00:00
konstantina.galouni a7b3be3faa [Trunk | Explore Services]: cache.js: In longCachingRequests include paths "/full" (and "/communityFull") and "/openaire/info" (for last index date).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59383 d315682c-612b-4755-9ff5-7f18f6832af3
2020-09-15 11:54:35 +00:00
k.triantafyllou aac1a2d5e9 [Cache]: Add usage counts endpoints to long cache
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59363 d315682c-612b-4755-9ff5-7f18f6832af3
2020-09-14 15:07:05 +00:00
k.triantafyllou 977c465079 [Cache | Trunk]: Change size to memsize while it is setting the cache current entries on metrics.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59194 d315682c-612b-4755-9ff5-7f18f6832af3
2020-07-29 14:09:45 +00:00
argiro.kokogiannaki cac44d718e Cache service:
-change console.debug to log
-mv resetAtMidnight inside app.listen


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59002 d315682c-612b-4755-9ff5-7f18f6832af3
2020-06-26 14:44:28 +00:00
argiro.kokogiannaki a9652670b3 [Cahce service]
Add:
const expireShort = 2 * 60 * 1000; //2mins
const expireLong = 24 * 60 * 60 * 1000; //24 hours
const cacheMaxSize =500;
const longCachingRequests = ["/communityFull/", "/pagehelpcontent","/provision/mvc/vocabularies/","/pages?page_route="];

-use expireLongTime for longCachingRequests
-add /clear request
-add timer to clean the cache on midnight
-when maxcachesize is reached clean the cache



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59001 d315682c-612b-4755-9ff5-7f18f6832af3
2020-06-26 13:33:35 +00:00
argiro.kokogiannaki cfed36d65b Cache:
Change URL method to work with older nodejs versions



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@58699 d315682c-612b-4755-9ff5-7f18f6832af3
2020-05-14 16:48:40 +00:00
k.triantafyllou 86c65dbd81 [Cache | Trunk]: Fix some issues on metrics. Remove encode url
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@58495 d315682c-612b-4755-9ff5-7f18f6832af3
2020-04-15 13:53:37 +00:00
k.triantafyllou eabd920aa2 [Cache | Trunk]: Add new metrics, encode url
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@58478 d315682c-612b-4755-9ff5-7f18f6832af3
2020-04-10 14:29:46 +00:00
k.triantafyllou 1fff0bd89e [Cache | Trunk]: Resolved some warnings
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@58226 d315682c-612b-4755-9ff5-7f18f6832af3
2020-03-11 12:53:14 +00:00
k.triantafyllou b2b15b5d6c [Cache | Trunk]: Add prometheus metrics
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@58225 d315682c-612b-4755-9ff5-7f18f6832af3
2020-03-11 12:51:10 +00:00
argiro.kokogiannaki fe92edf0da [Cache service | Trunk]
1.add url in logs
2. add response in cache only for requests that return code 200



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@57529 d315682c-612b-4755-9ff5-7f18f6832af3
2019-11-06 11:09:06 +00:00
argiro.kokogiannaki 962446ba06 Cache:update dependencies
Upload service moved to utils-services



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@56738 d315682c-612b-4755-9ff5-7f18f6832af3
2019-07-24 08:17:05 +00:00
argiro.kokogiannaki bad084b3e9 Initial commit of production portal folder
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@52744 d315682c-612b-4755-9ff5-7f18f6832af3
2018-07-13 11:56:03 +00:00
argiro.kokogiannaki 109db6590f Add host for redis, get proper answer, add cors
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@49714 d315682c-612b-4755-9ff5-7f18f6832af3
2017-10-27 11:59:57 +00:00
argiro.kokogiannaki c668c7368b Commit a first draft of caching service for redis and memcache
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@49707 d315682c-612b-4755-9ff5-7f18f6832af3
2017-10-26 15:33:59 +00:00