Presentation is loading. Please wait.

Presentation is loading. Please wait.

Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization Cache Synchronization.

Similar presentations


Presentation on theme: "Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization Cache Synchronization."— Presentation transcript:

1 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization Cache Synchronization

2 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization Overview 1.Why synchronize the cache 2.How it works 3.Configuration

3 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 1. Why synchronize the cache  Caching is essential for best performance  In multi-application installations content is often shared  Caches are local to application  Cache is managed in application, where changes are made  When several application share some content, you have to synchronize these caches!!  Example:  An application runs on two server (e.g. with NLB) - with two local caches  Changes are made on server1  There has to be a cache sync, so that the cache of server2 is several to server1

4 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 2. Who it works  Cache Synchronization is a contentXXL premium module  Typical scenario:  multiserver/multiapplication installation of contentXXL  each application has its own cache memory/cache entries  editor works in one application instance  editor changes data  dependent cache entries in his local application cache are reset  cache entries of same object in all other application instances stay unchanged  Cache Synchronization service  resets same cache entries in all other application instances  works via web service or remoting (tcp channel)  needs configuration in each application instance

5 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 3. Configuration - Requirements  There has to be a notify.config in the root directory of every installation  The server have to reach each other (can checked with a ping)  You have to register the webServices in the web.config:  Optional you can set in the web.config a timeout of the webrequest to notify another server (value in milliseconds, default 500):

6 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 3. Configuration – Example (Multiserver Installation) Server 1 ( ) Server 2 ( ) Application 1 Load Balancer (optional) Application 2 Cache1 Cache2 Cache Sync

7 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 4. Configuration – Example (notify.config) – Server 1 notify.config on server 1 ( ):

8 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 4. Configuration – Example (notify.config) – Server 2 notify.config on server 2 ( ):

9 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 4. Configuration – Explanation(notify.config)  Every application that should synchronized must have a notify.config in the root directory  The ServerID ( ) is numbered consecutively from 1 (whether the applications run on one or several server)  The groups should be equal in every notify.config  Port, srvid and the specifig URL are necessary in every group  The gid is also numbered consecutively through every group  Important:  If you want to synch your Cache via tcp channel you need the  The entry url with wakeup=„true“ will be taken, so you can enter more then one, but note, that just one entry should have „wakeup=„true““ else you will get problems or the wrong entry will be taken to synchronize the server  If you don‘t want to synch your Cache via tcp channel, you don‘t need to enter the, you‘ll just need the to enter the  Note: The CacheSynchronization works only on groups, which have another port or another srvid as the server that causes the synchronization

10 Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization 4. Configuration – Explanation - Review(notify.config)  Review: ..  your Serverid – grows up from 1 to X   Is needed to synchronize your cache via WebService   Is needed if you want to synchronize your cache via tcp channel  Needs to stand between HERE  You can enter more then one, but care that just one got the wakeup=„true“ else you maybe get errors, or the wrong entry will be taken


Download ppt "Titelmasterformat durch Klicken bearbeitencontentXXL – Cache Synchronization Cache Synchronization."

Similar presentations


Ads by Google