Hello,
Im trying to implement the L2 Cache on an existing system, that uses a load balancer, distributing the load between 2 machines.
My web site will be on both machines, but i cannot get the machines to synchronize between them...
here is the backend code im using:
backend.Backend = "MsSql";
backend.ProviderName = "System.Data.SqlClient";
backend.Runtime.ReturnNullForRowNotFound = true;
backend.Logging.MetricStoreSnapshotInterval = 0;
backend.SecondLevelCache.Enabled = true;
backend.SecondLevelCache.CacheQueryResults = true;
backend.SecondLevelCache.NumberOfObjects = 100000;
backend.SecondLevelCache.NumberOfObjectsPerQueryResults = 200000;
backend.SecondLevelCache.NumberOfQueryResults = 50000;
backend.SecondLevelCache.Synchronization.Enabled = true;
backend.SecondLevelCache.Synchronization.Localpath =
"Et_Cache_" + Environment.MachineName;
backend.SecondLevelCache.Synchronization.MulticastAddress = "224.1.1.1:666";
backend.SecondLevelCache.Synchronization.Name = "MSMQ";
The caching system seems to be working fine, when is only on one machine, but the changes i make on one machine, do not reflect on the other.
Am I doing something wrong, or i misunderstood how the distributed L2 cache is supposed to work?
Cheers