Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8570159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:29:46+00:00 2026-06-11T18:29:46+00:00

Is there anything aside from setting Secondaries=1 in the cluster configuration to enable HighAvailability,

  • 0

Is there anything aside from setting Secondaries=1 in the cluster configuration to enable HighAvailability, specifically on the cache client configuration?

Our configuration:

  • Cache Cluster (3 windows enterprise hosts using a SQL configuration provider):
  • Cache Clients

With the about configuration, we see primary and secondary regions created on the three hosts, however when one of the hosts is stopped, the following exceptions occur:

  • ErrorCode<ERRCA0018>:SubStatus<ES0001>:The request timed out.
  • An existing connection was forcibly closed by the remote host
  • No connection could be made because the target machine actively refused it 192.22.0.34:22233
  • An existing connection was forcibly closed by the remote host

Isn’t the point of High Availability to be able to handle hosts going down without interrupting service? We are using a named region – does this break the High Availability? I read somewhere that named regions can only exist on one host (I did verify that a secondary does exist on another host). I feel like we’re missing something for the cache client configuration would enable High Availability, any insight on the matter would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:29:47+00:00Added an answer on June 11, 2026 at 6:29 pm

    After opening a ticket with Microsoft we narrowed it down to having a static DataCacheFactory object.

    public class AppFabricCacheProvider : ICacheProvider
    {
        private static readonly object Locker = new object();
        private static AppFabricCacheProvider _instance;
        private static DataCache _cache;
    
        private AppFabricCacheProvider()
        {
        }
    
        public static AppFabricCacheProvider GetInstance()
        {
            lock (Locker)
            {
                if (_instance == null)
                {
                    _instance = new AppFabricCacheProvider();
                    var factory = new DataCacheFactory();
                    _cache = factory.GetCache("AdMatter");
                }
            }
            return _instance;
        }
        ...
    }
    

    Looking at the tracelogs from AppFabric, the clients are still trying to connect to all the hosts without handling hosts going down. Resetting IIS on the clients forces a new DataCacheFactory to be created (in our App_Start) and stops the exceptions.

    The MS engineers agreed that this approach was the best practices way (we also found several articles about this: see link and link)

    They are continuing to investigate a solution for us. In the mean time we have come up with the following temporary workaround where we force a new DataCacheFactory object to be created in the event that we encounter one of the above exceptions.

    public class AppFabricCacheProvider : ICacheProvider
    {
        private const int RefreshWindowMinutes = -5;
    
        private static readonly object Locker = new object();
        private static AppFabricCacheProvider _instance;
        private static DataCache _cache;
        private static DateTime _lastRefreshDate;
    
        private AppFabricCacheProvider()
        {
        }
    
        public static AppFabricCacheProvider GetInstance()
        {
            lock (Locker)
            {
                if (_instance == null)
                {
                    _instance = new AppFabricCacheProvider();
                    var factory = new DataCacheFactory();
                    _cache = factory.GetCache("AdMatter");
                    _lastRefreshDate = DateTime.UtcNow;
                }
            }
            return _instance;
        }
    
        private static void ForceRefresh()
        {
            lock (Locker)
            {
                if (_instance != null && DateTime.UtcNow.AddMinutes(RefreshWindowMinutes) > _lastRefreshDate)
                {
                    var factory = new DataCacheFactory();
                    _cache = factory.GetCache("AdMatter");
                    _lastRefreshDate = DateTime.UtcNow;
                }
            }
        }
    
        ...
    
        public T Put<T>(string key, T value)
        {
            try
            {
                _cache.Put(key, value);
            }
            catch (SocketException)
            {
                ForceRefresh();
                _cache.Put(key, value);
            }
            return value;
        }
    

    Will update this thread when we learn more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Especially for the majority of browsers that don't support it, is there anything aside
Is there a common way to consume web services from Android applications (aside from
Is there anything wrong or inherently unsafe about the way I've programmed this? I'm
is there anything more comfortable than this to detect a special page? The page
Is there anything wrong with this code or can this be done more efficiently?
Is there anything like asp.net transactions in Android SQLite? I am doing some processing
is there anything special I need to do to get ASP.NET MVC3 enabled on
Is there anything similar to the Spring JMX exporter out there WITHOUT using the
Is there anything like this outside of the application delegate? I would just like
Is there anything in Python that works like the final keyword in Java -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.