Knowledge Search


×
 

[Junos Content Encore (formerly MFC)/VXA] How to manually delete an object from the cache of a JCE/VXA device

  [KB25875] Show Article Properties


Summary:
This article provides information on how to delete a cached object from a JCE/VXA device.


Symptoms:
  • Generally, JCE/VXA does not permanently delete or remove the object from the Cache or disk; even if a proper eviction method is in place. JCE just locks the memory location (where the object is stored) for further look-up or overwrites existing content with the new one. So, at times, it is required to delete objects from the memory to clean the disk; but not via disk format.

  • Is it possible to remove any files/objects from JCEs?

  • If yes, what is the procedure to do so? Additionally, does the removal need any downtime and does it cause any performance impact to the caches?
Cause:

Solution:
  1. Is it possible to remove any files/objects from Juniper JCEs?

    Yes; it is possible to remove any file/object from JCE. To do so, use the following command:

    • namespace <name> object delete all - This will delete all the objects that are cached under the namespace <name>.

    • namespace <name> object delete <URL> - This will delete an object that is epresented by the URL.

    • namespace <name> object delete <pattern> - This will delete a list of objects whose URL matches the given pattern.

  2. If yes, what is the procedure to do so? Additionally, does the removal need any downtime and does it cause any performance impact to the caches?

    To delete the object /videos/sample.flv, perform the following procedure:

    1. Check if the object /videos/sample.flv is cached under the namespace by using the show namespace <name> object list /videos/sample.flv command.

    2. If the object is cached under the namespace, the object can be deleted by using the namespace <name> object delete /videos/sample.flv command.

    3. To confirm if the object is deleted from the namespace, check the DELETE log message in cache.log. You can also execute the show namespace <name> object list /videos/sample.flv command again. This time, the command will not list the object.

    The namespace object delete command can be executed, even if the system is in production traffic. But, if the object listing or deletion has to performed for 1000s of objects, then during the execution of the object listing and deletion command, the following occurs:

    1. Disk utilization will increase.

    2. As a result, it might cause slight latency in delivering the object; if the object has to be read from the disk cache.
Related Links: