Clustering Questions

download Clustering Questions

of 4

Transcript of Clustering Questions

  • 8/8/2019 Clustering Questions

    1/4

    Clustering Questions

    Qns:What is Cluster?Ans: A cluster is a group of queue managers set up in such a way that the queue managers cancommunicate directly with one another over a single network, without the need for transmission queue,channel, and remote queue definitions.

    Qns:What are the Advantages of clustering?Reduced system administrationIncreased high availabilityImproved resource utilizationWorkload sharing

    Qns:What is the algorithm that is followed by MQ in clustering?Ans: WebSphere MQ uses a workload management algorithm that uses a round-robin routine to select anavailable queue manager to route a message to.What is Cluster queue manager?

    Qns:A cluster Queue manager is a queue manager that is a member of a cluster. A queue manager canbe a member of more than one cluster What happens when we give a Refresh Cluster mqsc command ?This command issued on a queue manager, the queue manager discard all locally held information abouta cluster except the FULL repository information. This enables you to perform a cold-start on the cluster.

    Qns:How to remove a Qmgr from Cluster?*Suspend queue manager*Remove the CLUSRCVR channel definition from the cluster by setting the CLUSTER attribute to empty*Stop the CLUSRCVR channel*Delete the CLUSSDR channel definition

    Qns:What is the use of clustering?Ans. Due to the use of clustering1. The Administrator tasks can be reduced.2. We can achieve the Workload balance.

    Qns:How many no Full Repository Queue Managers are required for creating a cluster. What is thedifference between full and partial repositories?

    Ans: In each cluster you must select at least one, preferably two, or possibly more of the queue managersto hold full repositories. A cluster can work quite adequately with only one full repository but using twoimproves availability. Every cluster has at least one (preferably two) queue managers holding fullrepositories of information about the queue managers, queues, and channels in a cluster. Theserepositories also contain requests from the other queue managers in the cluster for updates to theinformation. The other queue managers each hold a partial repository, containing information about thesubset of queues and queue managers with which they need to communicate.

    Qns:Where does the information about the messages of a QueueManager are stored when they are incluster?

    Ans: Each queue manager stores its repository information in messages on a queue calledSYSTEM.CLUSTER.REPOSITORY.QUEUE.The queue managers exchange repository information in messages on a queue calledSYSTEM.CLUSTER.COMMAND.QUEUE.

    Qns:What happens when full cluster repository Qmgr goes down?If your queue manager is a full repository queue manager, alter the queue manager definition to set theREPOS and REPOSNL attributes to blank. This sends a notification to other queue managers advisingthem that they must stop sending cluster information to this queue manager.

  • 8/8/2019 Clustering Questions

    2/4

    Qns:When will we use RESET CLUSTER command?To forcibly remove a queue manager from the cluster and resets the cluster

    Qns:How does a partial repository QM share information with other clusters when the full repos QM isdown?

    The cluster continues to work with information from the other full repository. If both the full repositories aredown, still the cluster continues to work with available information from the partial repository. A repositoryhandles the request whenever possible but if the chosen repository is not available another repos used.When the first repository becomes available again, it collects the latest new and changed informationfrom the others so that the queue managers are kept in synch. The repository queue manager sendmessages to each other to be sure that they are both kept up to date with new information about thecluster

    Qns:Algorithm for workload balancing?Round Robin

    Qns:How do I set up a cluster and add a new QM to a cluster?Determine to which full repository the qmgr has to point to get cluster information, Define the CLUSRCVRchannel, Define a CLUSSDR channel on queue manager

    Qns:Components of a cluster?The components of a cluster area group of queue managers.(more than one)Cluster receiver channel - to communicate with any cluster queue managerCluster sender channel- to communicate with any cluster queue managerThe cluster sender channel points to a full repository queue managerCluster transmission queueOne transmission queue to transmit message to any cluster queueCluster queue

    A queue that is available to all cluster queue managers

    Qns:How many Transmission Queues are present in a Queue manager present in a Cluster?

    ONE

    Qns:When defining a Cluster sender channel, for example if there is more than one instance in the clusterwhat will happen?

    Qns:How many cluster channel definitions are required for a QM in a cluster?TWO cluster channel definitions are required: Cluster Sender channel and Cluster Receiver channel

    Qns:What is Cluster queue how is it defined?A cluster queue is a queue that is hosted by a cluster queue manager and made available to other queuemanagers in the clusterThe cluster queue manager makes a local queue definition for the queue, specifying the name of thecluster where the queue is to be found. This definition has the effect of showing the other queue

    managers in the cluster that the queue is there. The other queue managers in the cluster can putmessages to a cluster queue without needing a corresponding remote-queue definition.

    Qns:What makes clustering work?Defining a cluster-receiver channel has the effect of introducing a queue manager to one of the fullrepository queue managers. The full repository queue manager updates the information in its fullrepository accordingly. Then it automatically creates a cluster-sender channel back to the queuemanager, and sends the queue manager information about the cluster. Thus a queue manager learnsabout a cluster and a cluster learns about a queue manager.

  • 8/8/2019 Clustering Questions

    3/4

    Qns:Types of aliases and remote-queue definitions with clusters?Queue-manager aliases, reply-to queue aliases, and queue aliases

    Qns:What is a gateway queue manager and advantages of using in a cluster?This enables workload balancing for messages coming from outside the cluster.

    Qns:How will you keep a cluster secure?Stopping the unauthorized Queue manager sending message to your Queue managerStopping unauthorized Queue manager putting messages on your QueuesStopping Your Queue manager putting messages to remote QueuesPreventing Queue manager from joining a cluster: Define a channel security exit programForcing unwanted queue manager to leave a cluster

    Qns:What is Repository queue manager? What are Full and partial repository?A repository queue manager is a cluster queue manager that holds a full repositoryA queue manager that hosts a complete set of information about every queue manager in the cluster isreferred to as having a full repository for the cluster. The other queue managers in the cluster inquireabout the information in the full repositories and build up their own subsets of this information in partialrepositories. A partial repository contains information about only those queue managers with which thequeue manager needs to exchange messages. The queue managers request updates to the informationthey need, so that if it changes, the full repository queue manager will send them the new information

    Qns:Where does each queue manager store its repository information?SYSTEM.CLUSTER.REPOSITORY.QUEUE

    Qns:Where do the queue managers exchange repository information?SYSTEM.CLUSTER.COMMAND.QUEUE

    Qns:What happens when a queue manager fails? What happens if I put-disable a cluster queue? Howlong do the queue manager repositories retain information?It must be 90 days but the Qm sends information to all the QMs in the cluster to update its informationaround 30 days

    Qns:Adding a new Queue manager to a cluster?Determine the Full repository to which the QM should referDefine the CLUSRCVR channelDefine the CLUSSDR channel on the QMReview the application for message affinities

    Qns:Removing a cluster queue from a Queue manager?Indicate the Queue is no longer available remove the CLUSTER name from the local queue definition(ALTER QLOCAL(localqueue) CLUSTER())Disable the Queue ALTER QLOCAL(localqueue) PUT(DISABLE)Monitor the Queue until it is EMPTYMonitor the channel to ensure that there is no in-doubt messages

    Delete the Queue

    Qns:Removing a Queue Manager form a Cluster?Suspend the QM (SUSPEND QMGR CLUSTER(clusname))Remove the CLUSRCVR channel definitionStop the CLUSRCVR channelDelete the CLUSSDR channel definition

    Qns:Converting an existing network to cluster?

  • 8/8/2019 Clustering Questions

    4/4

    Alter two QM to make it a FULL repository MQDefine CLUSRCVR channel on each Queue managerDefine CLUSSDR channel on each Queue ManagerDelete all remote Queue definitions for the existing network

    Qns:What is Workload balancing?

    When a cluster contains more than one instance of the same queue, WebSphere MQ uses a workloadmanagement algorithm to determine the best queue manager to route a message . The algorithm uses around-robin approach to finalize its choice between the suitable queue managers.

    Qns:Removing a Cluster network?Remove the cluster queues from the clusterStop all applications that have access to cluster QueueRemove the repository attribute from the full repository Queue managerRemove Cluster channels on each Queue managerIssue REFRESH cluster command on each Queue manager.

    Qns:What is key repository?IS used to describe the store for digital certificates and their associated private keys.

    Qns:Whats the queue where the full and partial repository is stored?SYSTEM.CLUSTER.REPOSITORY.QUEUE

    **Some important MQSC commands that work with clusterDISPLAY CLUSQMGR SUSPEND CLUSQMGRRESUME CLUSQMGR REFRESH CLUSTERRESET CLUSTER