Re: [thredds] netCDF file overwritten but not updated in THREDDS

  • To: Michael McDonald <mcdonald@xxxxxxxxxxxxx>
  • Subject: Re: [thredds] netCDF file overwritten but not updated in THREDDS
  • From: Giampaolo Cimino <gcimino@xxxxxxxxx>
  • Date: Thu, 9 Jun 2016 17:27:28 +0200
Restart tomcat id definitely overkill!

I currently don' t want to change my catalog.xml, since we are in the
middle of an exercise.

Is there any endpoint i can call to empty the cache of THERDDS, eg
https://myip:8443/thredds/admin/debug?Caches/clearCaches

Thanks
GP


On Thu, Jun 9, 2016 at 5:05 PM, Michael McDonald <mcdonald@xxxxxxxxxxxxx>
wrote:

> Giampaolo,
>
> >> Is there any option to force THREDDS to update those files?
>
> The easiest forced update method is to restart tomcat :) (but that's
> overkill).
>
> Might want to check your "NetcdfFileCache" block in threddsConfig.xml
> to see if your "scour" value is set high (the default is 11 min
> according to the code comments).
>
>
>
> Rich et al,
>
>
> http://www.unidata.ucar.edu/software/thredds/current/tds/reference/ThreddsConfigXMLFile.html
>
> quote:
> "IGNORE BELOW THIS
> LOOK the following may not be working
> You may also set cache=false..."
>
> Is this cache=false for specific datasets now a *working* feature of
> THREDDS?
>
>
>
>
>
> On Thu, Jun 9, 2016 at 7:04 AM, Signell, Richard <rsignell@xxxxxxxx>
> wrote:
> > Cimino,
> >
> > You should be able to define a datasetRoot with cache="false", as
> > shown in this functioning forecast catalog where the forecast files
> > are simply overwritten each day with new content:
> >
> >
> https://github.com/rsignell-usgs/xml/blob/master/THREDDS/umassd_fvcom/forecasts.xml#L14
> >
> > -Rich
> >
> > On Thu, Jun 9, 2016 at 6:48 AM, Giampaolo Cimino <gcimino@xxxxxxxxx>
> wrote:
> >> All,
> >>
> >>
> >> i have this datasetScan in my catalog.xml:
> >>
> >> <dataset name="mycompany">
> >>
> >>
> >>         <datasetScan name="gliders" ID="gliders" path="gliders"
> >> location="/opt/ex16/data/gliders"  harvest="true">
> >>                 <metadata inherited="true">
> >>                     <serviceName>baseServices</serviceName>
> >>                     <dataType>Profile</dataType>
> >>                 </metadata>
> >>                 <filter>
> >>                     <include wildcard="*.nc"/>
> >>                 </filter>
> >>         </datasetScan>
> >>
> >>
> >> Inside the directory /opt/ex16/data/gliders/ the same files are
> overwritten
> >> every 3 hours.
> >> Apparently THREDDS doesn' t update automatically, that is THREDDS still
> >> serve the old files instead of the updated version.
> >>
>



-- 
Giampaolo Cimino
Via Paganino 20/A
19038 - Sarzana (SP)
Cell: (+39) 347 3444 548
Email: gcimino@xxxxxxxxx
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: