Disable PartitionListeners on service prior to cluster shutdown

We're running a Coherence cluster of 70 storage nodes and a further 10 storage-disabled tcp-extend nodes, all running DefaultCacheServer.
I have a PartitionListener configured on a distributed cache service which sends an email to a distribution list in the event of a 'PARTITION_LOST' event. However, currently when the storage-enabled processes are stopped (by killing the processes), we get spurious emails with partition losses due to the cluster being shut down.
Is there a tidy, built in way to disable the partition listeners across a cluster before the storage nodes are stopped, and avoid sending these spurious mails? Note that the mails are not sent by the process that is currently stopping, but by one of the other processes when the PartitionEvent is detected.
I've tried using of Cluster.shutdown() but this does not stop the listeners from being called. I also tried using Cluster.isRunning() in the listener to determine whether to send the error email, but it appears the cluster gets restarted (and isRunning() returns true again) if CacheFactory.getCache() is called after Cluster.shutdown() has been called, so this is not a safe mechanism either.
My current solution is to register each partition listener as a JMX bean on the management service (Registry) as it's instantiated, and expose a disable() method. I then run a standalone java class which joins the cluster and iterates over those registered beans calling disable on each one, prior to stopping the storage processes.
The above solution works, but am I missing a built-in way of doing this? I'd rather use an out of the box solution if there's one that fits the bill.
Thanks in advance,
Giles Taylor

Hi Giles,
I don't think that there is a feature for this particular purpose, as for Coherence the death of a node is a usual event, it does not have the concept of "I am going to kill all nodes, now".
However, it is very easy to to implement it on your own.
Just have a special-purpose cache, on which you register an event listener. The event-listener listening for a certain change in the cache (e.g. you put a specific value to a specific key, to indicate that full shutdown will commence now) should then set a static flag which indicates that full cluster shutdown has started and therefore you do not need to send emails on partition loss from now on. Alternatively you can do the same thing with an InvocationService (that invocation service needs to be started on all nodes). Alternatively you can also put that special entry simply into a replicated cache (so checking it can be locally carried out).
Then in the partition listener you just check the static flag or the replicated cache, according to whichever approach from the previous ones you chose, and you send the mail only if you did not indicate that full shutdown is commencing.
Then if you want to do a full shutdown, you first carry out the action according to the approach which you chose, and only then start to kill nodes.
BR,
Robert

Similar Messages

  • Disable Remote Resigtry service for SQL Server failover cluster

    Hi,
    Is it safe to disable Remote Registry service from the the two nodes of SQL Server failover clustering?
    Operating system: Microsoft Server 2008 R2 Enterprise Edition (64-bit)
    Database software: Microsoft SQL Server 2008 R2 Enterprise Edition (64-bit), Failover Clustering
    Thank you.
    Regards,
    Gan

    Hi Pradeep,
    You are right. I tested and verified that the GUI of cluster (Failover Cluster Manager) was not working properly after disabling Remote Registry service. Thank you :)
    Regards,
    Gan

  • Receive location using SBMessaging adapter disabled when Azure service bus is down

    Does anybody experience  SBMessaging receive locations are disabled when Azure service bus is unavailable with a MessagingCommunicationException?  Is this an expected behavior / 'by design'? We see this exception a few times a day.  I don't
    see any retry attempts based on the event log.  Our current solution is to have a powershell script that enables the receive location if it's disabled.  This script runs every 15 minutes.  Below is a sample of the error in the event log.
    The receive location "Warnings_SB_New" with URL "XXXXXX" is shutting down. Details:"System.ServiceModel.EndpointNotFoundException: Error during communication with Service Bus. Check the connection information, then retry. --->
    Microsoft.ServiceBus.Messaging.MessagingCommunicationException: Error during communication with Service Bus. Check the connection information, then retry. ---> System.ServiceModel.CommunicationObjectFaultedException: Internal Server Error: The server did
    not provide a meaningful reply; this might be caused by a premature session shutdown..TrackingId:bb29d71c-a4d5-430c-a2d9-8a2e3acfad1d, Timestamp:5/9/2014 2:38:19 AM

    Hi R. de Veen,
    Below as the script we used with BTS2013.  We created a command line and setup a scheduled task.  Again, we don't use this script with BTS2013R2 since we do not have this issue with BTS2013 R2.
    # Sample from https://github.com/tomasr/bts-ps-scripts/blob/master/bts-ports.ps
    # declare our parameters: the action to take
    param(
    [string] $action=$(throw 'need action'),
    [string] $name
    $ctpRLs = @(
    'Errors_SB_New'
    #,'Error_OldTopic_OldLoggingDB'
    ,'Information_SB_New'
    ,'Warnings_SB_New'
    #,'Information_NewTopic_OldLoggingDB'
    ,'Critical_SB_New'
    #'Critical_OldTopic_OldLoggingDB'
    # functions for pinging receive locations
    function uti-ping-recv-loc
    foreach ($rl in $ctpRLs)
    Write-Host "`n"
    if (( $rl -eq '') -or ($rl -eq $null))
    throw "Receive location cannot be blank."
    #Validate if this is a valid receive location
    $recvloc = get-wmiobject MSBTS_ReceiveLocation `
    -namespace 'root\MicrosoftBizTalkServer' `
    -filter "Name='$rl'"
    if ($recvloc -eq $null)
    Write-Host "'$rl' does not exist. Skipping..." -foregroundcolor red -backgroundcolor black
    else
    Write-Host "Ping '$rl'..."
    if ($recvloc.IsDisabled)
    Write-Host "Restarting '$rl'..."
    bts-set-recv-loc-status -name $rl -status 'enable'
    Start-Sleep -s 10
    if ($recvloc.IsDisabled)
    Write-Host "Failed to enable $rl. Check the event log for more information." -foregroundcolor red -backgroundcolor black
    else
    Write-Host "'$rl' is enabled."
    else
    Write-Host "'$rl' is enabled."
    $i++
    Write-Host "`nComplete!!!`n`n" -foregroundcolor green -backgroundcolor black
    # enable or disable the specified
    # receive location
    function bts-set-recv-loc-status($name, $status)
    $recvloc = get-wmiobject MSBTS_ReceiveLocation `
    -namespace 'root\MicrosoftBizTalkServer' `
    -filter "Name='$name'"
    switch ( $status )
    'disable' { [void]$recvloc.Disable() }
    'enable' { [void]$recvloc.Enable() }
    # controls a send port
    function bts-set-send-port-status($name, $status)
    $sendport = get-wmiobject MSBTS_sendPort `
    -namespace 'root\MicrosoftBizTalkServer' `
    -filter "Name='$name'"
    switch ( $status )
    'start' { [void]$sendport.Start() }
    'stop' { [void]$sendport.Stop() }
    'enlist' { [void]$sendport.Enlist() }
    'unenlist' { [void]$sendport.UnEnlist() }
    function is-valid-opt($check, $options)
    foreach ( $val in $options )
    if ( $check -eq $val ) {
    return $true
    # main script
    switch ( $action )
    'ping-recv-loc' {
    uti-ping-recv-loc
    Write-Host "`n"
    Write-Host "Syntax: .\RestartELCRLs.ps1 ping-recv-loc"
    Write-Host "`n"

  • Help!!! Locked out of DC with disabled AD directory Service !!!!

    Hi there, I believe I just entered into the biggest hole ...
    Was planning to p2v of a DC and read online to stop and "disable" all AD services.
    Disable I did, and after installation of convertor software, windows updates I mistakenly did a reboot!!.
    Now, I cannot login!getting "no logon servers available" ; I did create a local admin accoutn using command line, but just found that there is no actual local admin account on DC's, its only administrator account.
    Am I screwed, the server is also an exchange server.! :(
    Please please any ideas....any help ???????

    Please note that the below procedure should be only used for a emergency purpose or for a LAB testing. Please don't simply use this in any ones server / Desktop as it is equal to Hacking.
    Before you Perform. Please read your Country's Cyber law once.
    ===================================================================
    Hey Karma,
    The above option will not work.
    Just tried it in the Lab.
    So you download this password breaker ISO from the FTP link below which i uploaded and follow the instructions.
    FTP link: http://depositfiles.com/files/i1sz0yv0c
    It breaked my Local admin password in DSR mode.
    Reboot the server and boot from the ISO i am giving.
    Once you boot it will ask you for options from what you Want to boot from Now.
    Select 0 and press enter - Which is clean boot from Active@Password Changer
    Then  pres 1 and enter and Then it will show you the partitions on the server. Select the partition where windows is installed and press enter and it will start searching for the SAM database where the Password is encrypted.
    Once the search is completed it will show the SAM file and press enter to continue
    Then the Local user accounts on that computer will be displayed
    Select the number in Yellow mostly 0 will be for administrator. If it is different just see what number is in Yellow on the left hand side of the Administrator and press the number and press enter
    It will ask what to do with account
    Then use space bar key to select options by navigating using the arrow keys.
    Select Reset password and Change password on the next logon. and Click Y
    Your done. 
    Exit the program and restart the computer in DSR mode and Select .\Administrator and press enter. It will as you to set the new Password. Old password leave it blank and enter the new password and you are in.
    Thats all
    Gautam.75801

  • How can I disable the location service of my camera and photos in my iphone 5s?

    How can I disable the location service of my camera and photos of my iphone 5s?

    Settings>Privacy>Location Services>Camera>OFF.

  • Problem with users disabling ARD client service

    I've got a problem and i'm not quite sure of the work around. I'm a PC guy by nature and can't quite figure this out.
    I'm having a problem with users disabling the ARD service from the sharing menu. Unfortunately users need to have admin privleges to do their work so I can't simply give them a standard account.
    I've hidden the ARD user account i created from the login window through Netinfo, but I need to find a way to stop users from shutting the ard service down.
    They don't seem to understand that the company requires that it be on the computer. Now, I'm the one who is set as the admin for ARD in the building, however we really just use it to rollout drivers, install packages, and its a lifesaver for remotely fixing problems with programs. The company didn't really buy it to spy on the employee's.
    Is there any way to hide the service from an admin level account? Or keep them from shutting it down?
    BTW, this would have to be done on multiple machines running both panther and tiger.
    Any help would be appreciated as I'm not quite sure where to start.

    First, as a matter of policy, let them know this service is active, and needs to remain active. If they disobey this instruction and turn it off, you have a human resources issue, not a technical issue.
    Second, there are very few enterprise users that need admin access to their machines. Oh, they ALL think they do, and there will be howling when non-admin status is first imposed, but we have 350 users in a publishing environment with less that 20 setup as admins. Those users are almost all superusers who assist others in a technical role.
    We have far fewer software problems like this and with ARD, IT can install/ authorize installation of software remotely should a user need that. It simply does not dramatically impact our users to have non-admin access. On the other hand, we recognize that a FEW users will need more access, and grant that on a case-by-case basis.

  • How will Find my iPhone app help me track my iphone if someone has disabled the location services which doesnt require an unlock code?

    How will Find my iPhone app help me track my iphone if someone has disabled the location services which doesnt require an unlock code?

    You can't, and the same if the thief turms off the phone.
    What to do if your iOS device is lost or stolen
    Reporting a lost or stolen Apple product

  • Cluster shutdown porcess?

    Is there a way to let Coherence know that we are going to shutdown the whole cluster, so don't bother to transfer data for distributed cache to other storage node when we shutdown node one by one?
    We have a cluster with multiple strage enable nodes.
    We are calling CacheFactory.shutdown() on each node during cluster shutdown process. Turn out that Coherence will try to move data to other storage node when we start to shutdown storage node one by one which make the whole shutdown process lot longer especially if the cluster contain huge amount of data already.
    Is there a way to let Coherence know that the whole cluster will be tear down and don't bother to move data around? Please beware the issue a kill command to all nodes is not an option for us.

    There is no Coherence API to shutdown an entire cluster or prevent the data transfer as nodes are shutdown. You can use the InvocationService to run an Invocable that simply does a System.exit(), which will effectively force the cluster down immediately.
    --David                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HT5527 My icloud apple ID had been disabled after icloud services downgraded my 18Gb documents in the cloud to 5Gb. I can't updated now because when i try to do it i get a message saying that my ID is disabled

    My icloud apple ID had been disabled after icloud services downgraded my 18Gb documents in the cloud to 5Gb. I received an email from icloud services a couple of months after i upgraded my icloud storage (on Sept30th) saying that my billing info was wrong. In fact my credit card was outdated so i updated my credit I can't updated now because when i try to do it i get a message saying that my ID is disabled. Can you help me?? I can't access my docs now...

    See this Apple document for help...
    http://support.apple.com/kb/ts2446

  • TS4006 My ipod was stolen and I was trying to track it via icloud but they've disabled the location services. Will they still receive my "Find My iPod" messages?

    My ipod was stolen and I was trying to track it via icloud but they've disabled the location services. Will they still receive my "Find My iPod" messages?

    If they disabled services, then they disabled Find My iPhone (if they're smart), so you won't be able to track it and/or wipe it.  Messages won't work either.

  • Managed Service Accounts for Cluster

    Hi,
    Is it possible to use a MSAs for a 2012 FCI on windows 2008 R2?  Since a MSA can only be associated with one computer, you would have to use multiple MSA accounts, but I've not heard about using service accounts with different names to run a clustered
    SQL service.
    Thanks,
    Sam

    Hi sam_squarewave,
    We can configure the SQL 2012 standalone instance to utilize the new Managed Service Accounts feature in Windows 2008 R2. Usually
    setup the MSA in Active Directory,
    install the MSA on the target server and change the SQL Service account. The managed service account is designed to provide crucial applications such as Exchange Server and IIS with the isolation of their own domain accounts, it should not support
    with SQL 2012 Failover Clustered Instances(FCI). For more information about Managed Service Accounts (MSA) and SQL 2012, you can review the following article.
    http://blogs.msdn.com/b/arvindsh/archive/2014/02/03/managed-service-accounts-msa-and-sql-2012-practical-tips.aspx?PageIndex=5
    In addition, when you configure Windows Failover Clustering for SQL Server (Availability Group or FCI), if you want to other accounts,
     the accounts and permissions required to create and maintain your HADR solution. For guidance configuring the required account permissions for WSFC clusters and clustered services, see Failover Cluster Step-by-Step Guide: Configuring Accounts
    in Active Directory (http://technet.microsoft.com/en-us/library/cc731002(WS.10).aspx).
    There is detail about configure Windows Failover Clustering for SQL Server (Availability Group or FCI) with Limited Security, you can review it.
    http://blogs.msdn.com/b/sqlalwayson/archive/2012/06/05/configure-windows-failover-clustering-for-sql-server-availability-group-or-fci-with-limited-security.aspx
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Disable product type Service

    In SC free text item or in a PO item, an item needs to be classified as a Service-item or a Material-item. In SRM 6.0 does anybody know how to limit this the way that the user will only be able to choose Material?

    Hi,
    See these related threads:
    Disable SERVICE button
    Re: Hiding the field in describe requirement  sc creation

  • Reporting Service SharePoint Integration Mode option is disabled in Reporting Service Configuration - SQL 2012

    Hi ,
     The option to select reporting service in sharepoint integration mode is disabled while trying to install SQL Server 2012. Any ideas?
    Raghavendra Shanbhag | Blog: http://moss-solutions.blogspot.com
    Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
    Disclaimer: This posting is provided "AS IS" with no warranties.

    Hi Trevor,
    Need urgent help please.
    I have to install the SSRS in SP 2013.
    Database ( SQL Server 2012 SP1) and SP 2013 servers are separate.
    Installed SSRS in DB server (Integration mode).
    Installed ADD-IN for SSRS in SP2013 server.
    I have followed all the steps mentioned by microsoft.
    But , I stuckup as below, SSRS service in sharepoint does not get started.It is showing disabled.
    >Install-SPRSService
    >Install-SPRSServiceProxy
    >Get-SPServiceInstance -all |where {$_.TypeName -like "SQL Server Reporting*"} | Start-SPServiceInstance
    >get-spserviceinstance -all |where {$_.TypeName -like "SQL Server Reporting*"}
    TypeName                         Status   Id                                
    SQL Server Reporting Services... Disabled b2efbe68-114f-4459-b083-4d414528ab05
    And, while looking from Manage service application, the SSRS service shows 'Error Starting' while we go to start the service.
    Hitting the technical detail of the problem it takes us to 
    Following is the log entry through ULS viewer :
    Microsoft.ReportingServices.Diagnostics.SqlInstallation+ConfigurationErrorException: Installation Error: Could not find SharedCode on SOFTWARE\Microsoft\Microsoft SQL Server\110 registry key.   
     at Microsoft.ReportingServices.Diagnostics.SqlInstallation.get_SqlSharedCodeDirectory()    
     at Microsoft.ReportingServices.Diagnostics.SqlInstallation.GetSkuFromSqlBoot(String instanceId, Int32& daysLeft)    
     at Microsoft.ReportingServices.SharePoint.SharedService.Service.ReportingWebServiceInstance.Provision()    
     at Microsoft.SharePoint.ApplicationPages.ServerPage.OnObjectModelAction(Object sender, ObjectModelActionEventArgs e)    
     at Microsoft.SharePoint.WebControls.ActionLinkDataSourceControl.RaisePostBackEvent(String eventArgument)    
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    We have no clue whats going on.
    Please help.
    Thanks,
    Raghav

  • How to disable the  'Change - Display' Button in Cluster via SM34 ?

    Hi
    I have a View Cluster maintained with a transaction wich calls  SM34 passing it the Cluster.
    I need the dialog be only in display mode, so i'm looking for a way to disable the button Change<->Display.
    Does somebody knows how can i do this ? maybe with an event, the button does not appears or well making the button does not change the display mode (does not change the field VIEW_ACTION siwtch from 'S' to 'U')
    Thanks in advanced
    Frank

    Hi Frank,
    On SAP 4.7 Version
    1). Goto SHD0
    2). Enter the transaction code as SM34
    3). ENter the transaction Variant as say ZSM34
    4). Click on the create button --> this will take you to the sm34 screen. If you want to default some value or disable something on this screen just hit enter on this screen. You will get a popup window to select and restrict.
    5). You can further go to next screen and deactivate the menu. On the popup screen you will get a button MENU FUNCTIONS.
    Hope this helps
    Cheers
    VJ

  • Disable 'Find' (good /service) function in 'items in shopping cart' SRM 5.5

    Hi SRM experts,
    after clicking on Shopping Cart (- Full functionality) you have the choice of searching in catalogs or you can scroll down to 'Items in Shopping cart' and enter the product-id directly in 'Good / Service'.
    How can I disable this 'Find' option? So not the whole line, but only the 'find' option with the binoculars.
    Hope you can help me out with this one.

    Hi Kubus,
    I think you are talking about the 'Order as Direct Materail' button..
    Use BBP_DP_PROD_CHK_BADI.
    Method PRODUCT_CHECK
    Clear the parameter EV_DP_POSSIBLE.
    Have a look at the following link:
    Hide order as direct material button
    Thanks,
    Pradeep

Maybe you are looking for

  • How to create permission list in PSFT 8.48

    Hi I want to create permission list in peoplesoft 8.48 version. I am following the below steps as mentioned in PSFT User Management guide for OIM. 1. Open a Web browser and enter the URL for PeopleSoft Internet Architecture. The URL is in the followi

  • IP address range of Microsoft Location Services API

    Hi, I am developing a LOB windows 8.1 application. The windows 8 tablet device we are using needs to be locked down by IP address to the specific services that the application will use. I have not been able to find the IP address range for the Micros

  • Inserting video clip and have both audios at once

    Hi everyone, hopefully somone can help answer my question.  My friend has a video blog and the person who used to do all of his technical stuff is no longer with him, so he's trying to figure it all out, and I figured I'd try to help him. In iMovie,

  • Can captivate work with windows application automate tools

    Hi, I am assigned a task to create demos of some web applications, I do not want to run the application then click and input manually and am willing to use some windows automate tools to record my action first, then capture the screen while doing aut

  • HT2291 What to do?

    My pc won't turn on.  I'd like to transfer my iTunes from the pc onto a Mac book, is that possible?