Expire Cache on hosted repository

View: New views
8 Messages — Rating Filter:   Alert me  

Expire Cache on hosted repository

by Laedret :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.

Re: Expire Cache on hosted repository

by Anders Hammar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a look here:
http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/

"Expire Repository Caches" is the same thing as right click and choose "Expire Cache" on a repo.

/Anders

On Wed, Oct 21, 2009 at 11:51, Henric Larsson <Henric.Larsson@...> wrote:
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.


Re: Expire Cache on hosted repository

by Tamás Cservenák :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Hosted reposes:

* clears NFC

On Proxy reposes:

* clears NFC
* _expires_ the cached items, hence remote check will be done even if they are not "aged"


NFC = not found cache, misses are cached to prevent remote requests, and stop them and proxy repo. Only the 1st request will do remote request, the others will "hit" NFC.

Thanks,
~t~

On Wed, Oct 21, 2009 at 12:45 PM, Anders Hammar <anders@...> wrote:
Have a look here:
http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/

"Expire Repository Caches" is the same thing as right click and choose "Expire Cache" on a repo.

/Anders


On Wed, Oct 21, 2009 at 11:51, Henric Larsson <Henric.Larsson@...> wrote:
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.



RE: Expire Cache on hosted repository

by Laedret :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Guys,
 
Just to be clear though, I'm fully aware of how the cache works and why it's required for proxied repositories.
 
But I can't see how it could be useful for hosted repos, as there's no upstream repository to cache. As you pointed out, it clears the NFC, but how much of an improvement is there to have an NFC cache for the file system?
 
Cheers,
Henric
 
 


From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of Tamás Cservenák
Sent: 21 October 2009 13:25
To: nexus-user@...
Subject: Re: [nexus-user] Expire Cache on hosted repository

On Hosted reposes:

* clears NFC

On Proxy reposes:

* clears NFC
* _expires_ the cached items, hence remote check will be done even if they are not "aged"


NFC = not found cache, misses are cached to prevent remote requests, and stop them and proxy repo. Only the 1st request will do remote request, the others will "hit" NFC.

Thanks,
~t~

On Wed, Oct 21, 2009 at 12:45 PM, Anders Hammar <anders@...> wrote:
Have a look here:
http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/

"Expire Repository Caches" is the same thing as right click and choose "Expire Cache" on a repo.

/Anders


On Wed, Oct 21, 2009 at 11:51, Henric Larsson <Henric.Larsson@...> wrote:
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.




The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.

Re: Expire Cache on hosted repository

by Tamás Cservenák :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For FS local storage, not much, true. But Nexus have pluggable both, LocalStorage and RemoteStorage ;)


Thanks,
~t~

On Wed, Oct 21, 2009 at 2:55 PM, Henric Larsson <Henric.Larsson@...> wrote:
Thanks Guys,
 
Just to be clear though, I'm fully aware of how the cache works and why it's required for proxied repositories.
 
But I can't see how it could be useful for hosted repos, as there's no upstream repository to cache. As you pointed out, it clears the NFC, but how much of an improvement is there to have an NFC cache for the file system?
 
Cheers,
Henric
 
 


From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of Tamás Cservenák
Sent: 21 October 2009 13:25
To: nexus-user@...
Subject: Re: [nexus-user] Expire Cache on hosted repository

On Hosted reposes:

* clears NFC

On Proxy reposes:

* clears NFC
* _expires_ the cached items, hence remote check will be done even if they are not "aged"


NFC = not found cache, misses are cached to prevent remote requests, and stop them and proxy repo. Only the 1st request will do remote request, the others will "hit" NFC.

Thanks,
~t~

On Wed, Oct 21, 2009 at 12:45 PM, Anders Hammar <anders@...> wrote:
Have a look here:
http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/

"Expire Repository Caches" is the same thing as right click and choose "Expire Cache" on a repo.

/Anders


On Wed, Oct 21, 2009 at 11:51, Henric Larsson <Henric.Larsson@...> wrote:
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.




The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.


Re: Expire Cache on hosted repository

by Brian Fox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For a fast file system it should be negligible but everything counts,
and like Tamas said we might support some form of RemoteStorage (think
cluster) in the near future. Regardless, the only time you would want
to expire the cache on a hosted repo would be if you were making
changes directly on disk. FWIW, you can control the length of the NFC
timeouts to turn it off if you want.

On Wed, Oct 21, 2009 at 8:55 AM, Henric Larsson
<Henric.Larsson@...> wrote:

> Thanks Guys,
>
> Just to be clear though, I'm fully aware of how the cache works and why it's
> required for proxied repositories.
>
> But I can't see how it could be useful for hosted repos, as there's no
> upstream repository to cache. As you pointed out, it clears the NFC, but how
> much of an improvement is there to have an NFC cache for the file system?
>
> Cheers,
> Henric
>
>
> ________________________________
> From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of
> Tamás Cservenák
> Sent: 21 October 2009 13:25
> To: nexus-user@...
> Subject: Re: [nexus-user] Expire Cache on hosted repository
>
> On Hosted reposes:
> * clears NFC
> On Proxy reposes:
> * clears NFC
> * _expires_ the cached items, hence remote check will be done even if they
> are not "aged"
>
> NFC = not found cache, misses are cached to prevent remote requests, and
> stop them and proxy repo. Only the 1st request will do remote request, the
> others will "hit" NFC.
> Thanks,
> ~t~
>
> On Wed, Oct 21, 2009 at 12:45 PM, Anders Hammar <anders@...> wrote:
>>
>> Have a look here:
>> http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/
>>
>> "Expire Repository Caches" is the same thing as right click and choose
>> "Expire Cache" on a repo.
>>
>> /Anders
>>
>> On Wed, Oct 21, 2009 at 11:51, Henric Larsson
>> <Henric.Larsson@...> wrote:
>>>
>>> Hi,
>>>
>>> What effect does Expire Cache have on a hosted repository, and under what
>>> circumstances would it be useful?
>>>
>>> Cheers,
>>> Henric
>>>
>>>
>>>   ________________________________
>>> The information contained in this email is strictly confidential and for
>>> the use of the addressee only, unless otherwise indicated. If you are not
>>> the intended recipient, please do not read, copy, use or disclose to others
>>> this message or any attachment. Please also notify the sender by replying to
>>> this email or by telephone (+44 (0)20 7896 0011) and then delete the email
>>> and any copies of it. Opinions, conclusions (etc.) that do not relate to the
>>> official business of this company shall be understood as neither given nor
>>> endorsed by it. IG Index Ltd is a company registered in England and Wales
>>> under number 01190902. VAT registration number 761 2978 07. Registered
>>> Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised
>>> and regulated by the Financial Services Authority. FSA Register number
>>> 114059.
>>
>
>
> ________________________________
> The information contained in this email is strictly confidential and for the
> use of the addressee only, unless otherwise indicated. If you are not the
> intended recipient, please do not read, copy, use or disclose to others this
> message or any attachment. Please also notify the sender by replying to this
> email or by telephone (+44 (0)20 7896 0011) and then delete the email and
> any copies of it. Opinions, conclusions (etc.) that do not relate to the
> official business of this company shall be understood as neither given nor
> endorsed by it. IG Index Ltd is a company registered in England and Wales
> under number 01190902. VAT registration number 761 2978 07. Registered
> Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised
> and regulated by the Financial Services Authority. FSA Register number
> 114059.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-user-unsubscribe@...
For additional commands, e-mail: nexus-user-help@...


RE: Expire Cache on hosted repository

by Laedret :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fair enough. Presumably this cache would be updated automatically though if an artifact has previously been in the NFC but is added through either an upload via the gui or a deploy using the maven deploy plugin?
 
The reason I'm asking is because we're debating at work whether the cache should be expired manually if an artifact is either added or removed.
 
I would hope that nexus should handle this automatically.
 
 
Cheers,
Henric
 


From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of Tamás Cservenák
Sent: 21 October 2009 13:56
To: nexus-user@...
Subject: Re: [nexus-user] Expire Cache on hosted repository

For FS local storage, not much, true. But Nexus have pluggable both, LocalStorage and RemoteStorage ;)


Thanks,
~t~

On Wed, Oct 21, 2009 at 2:55 PM, Henric Larsson <Henric.Larsson@...> wrote:
Thanks Guys,
 
Just to be clear though, I'm fully aware of how the cache works and why it's required for proxied repositories.
 
But I can't see how it could be useful for hosted repos, as there's no upstream repository to cache. As you pointed out, it clears the NFC, but how much of an improvement is there to have an NFC cache for the file system?
 
Cheers,
Henric
 
 


From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of Tamás Cservenák
Sent: 21 October 2009 13:25
To: nexus-user@...
Subject: Re: [nexus-user] Expire Cache on hosted repository

On Hosted reposes:

* clears NFC

On Proxy reposes:

* clears NFC
* _expires_ the cached items, hence remote check will be done even if they are not "aged"


NFC = not found cache, misses are cached to prevent remote requests, and stop them and proxy repo. Only the 1st request will do remote request, the others will "hit" NFC.

Thanks,
~t~

On Wed, Oct 21, 2009 at 12:45 PM, Anders Hammar <anders@...> wrote:
Have a look here:
http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/

"Expire Repository Caches" is the same thing as right click and choose "Expire Cache" on a repo.

/Anders


On Wed, Oct 21, 2009 at 11:51, Henric Larsson <Henric.Larsson@...> wrote:
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.




The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.



The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.

Re: Expire Cache on hosted repository

by Tamás Cservenák :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you deployed it directly "behind" nexus to FS, then NFC will not be maintained.
If you deployed over Nexus (is. upload or maven deploy), then NFC will be maintained.


Hope helps,
~t~

On Wed, Oct 21, 2009 at 3:38 PM, Henric Larsson <Henric.Larsson@...> wrote:
Fair enough. Presumably this cache would be updated automatically though if an artifact has previously been in the NFC but is added through either an upload via the gui or a deploy using the maven deploy plugin?
 
The reason I'm asking is because we're debating at work whether the cache should be expired manually if an artifact is either added or removed.
 
I would hope that nexus should handle this automatically.
 
 
Cheers,
Henric
 


From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of Tamás Cservenák
Sent: 21 October 2009 13:56

To: nexus-user@...
Subject: Re: [nexus-user] Expire Cache on hosted repository

For FS local storage, not much, true. But Nexus have pluggable both, LocalStorage and RemoteStorage ;)


Thanks,
~t~

On Wed, Oct 21, 2009 at 2:55 PM, Henric Larsson <Henric.Larsson@...> wrote:
Thanks Guys,
 
Just to be clear though, I'm fully aware of how the cache works and why it's required for proxied repositories.
 
But I can't see how it could be useful for hosted repos, as there's no upstream repository to cache. As you pointed out, it clears the NFC, but how much of an improvement is there to have an NFC cache for the file system?
 
Cheers,
Henric
 
 


From: t.cservenak@... [mailto:t.cservenak@...] On Behalf Of Tamás Cservenák
Sent: 21 October 2009 13:25
To: nexus-user@...
Subject: Re: [nexus-user] Expire Cache on hosted repository

On Hosted reposes:

* clears NFC

On Proxy reposes:

* clears NFC
* _expires_ the cached items, hence remote check will be done even if they are not "aged"


NFC = not found cache, misses are cached to prevent remote requests, and stop them and proxy repo. Only the 1st request will do remote request, the others will "hit" NFC.

Thanks,
~t~

On Wed, Oct 21, 2009 at 12:45 PM, Anders Hammar <anders@...> wrote:
Have a look here:
http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks/

"Expire Repository Caches" is the same thing as right click and choose "Expire Cache" on a repo.

/Anders


On Wed, Oct 21, 2009 at 11:51, Henric Larsson <Henric.Larsson@...> wrote:
Hi,
 
What effect does Expire Cache have on a hosted repository, and under what circumstances would it be useful?
 
Cheers,
Henric
 
 

  ________________________________  
The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.




The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.



The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.