Multiple cluster

Can it be feasible to use multiple cluster can be implemented in Index view ?

You can only have one clustered index on each SQL Server table, however there are two ways to create pseudo clustered indexes on a table:
1.Create clustered indexed on a view (indexed view) that covers the table
2.Create covering index on the entire table
Let's look at the following table:
CREATE TABLE t1
c1 int,
c2 varchar(5),
c3 bigint,
c4 datetime,
CONSTRAINT PK_t1 PRIMARY KEY CLUSTERED (c1, c2, c3, c4)
GO
For option 1 above, here's the indexed view and clustered index:
SET NUMERIC_ROUNDABORT OFF;
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT,
QUOTED_IDENTIFIER, ANSI_NULLS ON;
GO
CREATE VIEW v1 WITH SCHEMABINDING
AS
SELECT c1, c2, c3, c4 FROM dbo.t1
GO
CREATE UNIQUE CLUSTERED INDEX cidx_v1 ON dbo.v1(c2, c3, c4, c1)
GO
For option 2 above, here’s the covering index:
CREATE INDEX idx_PseudoClust ON t1(c3, c4) INCLUDE (c2, c1)
GO
So why would you want to do this? I'm sure that there are some very good reasons, but I've never had the need to do it. I recently had the discussion with a Microsoft engineer and thought it was interesting enough to share.
Ref.
http://weblogs.sqlteam.com/tarad/archive/2009/11/09/Multiple-ldquoclusteredrdquo-indexes-on-a-SQL-Server-table.aspx
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

Similar Messages

  • Possible to have multiple cluster members in the same JVM (for unit tests)?

    Hi,
    I'm wondering if it's possible to simulate multiple cluster members inside of a single JVM. I'm looking to unit test my code and it would be great to write cases for various boundary conditions.
    This could certainly be done with multiple JVMs but would be more difficult to run in something like cruise control etc.
    TIA,
    Danny

    Hi Danny,
    I do not know how to accomplish what you are asking for and run several Coherence nodes in a single JVM, but I have written a JUnit base class that starts a configurable number of nodes (each in its own JVM) and provides some other useful methods for unit/integration testing with Coherence, such as method to clear all caches or to load test data from the CSV file.
    It is still a work in progress and you might need to tweak things a bit to make it work in your environment, but it will at least give you a head start.
    Shoot me an email if you are interested and I'll send it to you (you can find my email in my profile).
    Regards,
    Aleks

  • JNDI Lookup for multiple server instances with multiple cluster nodes

    Hi Experts,
    I need help with retreiving log files for multiple server instances with multiple cluster nodes. The system is Netweaver 7.01.
    There are 3 server instances all instances with 3 cluster nodes.
    There are EJB session beans deployed on them to retreive the log information for each server node.
    In the session bean there is a method:
    public List getServers() {
      List servers = new ArrayList();
      ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
      try {
       Properties prop = new Properties();
       prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
       prop.put(Context.SECURITY_AUTHENTICATION, "none");
       Thread.currentThread().setContextClassLoader((com.sap.engine.services.adminadapter.interfaces.RemoteAdminInterface.class).getClassLoader());
       InitialContext mInitialContext = new InitialContext(prop);
       RemoteAdminInterface rai = (RemoteAdminInterface) mInitialContext.lookup("adminadapter");
       ClusterAdministrator cadm = rai.getClusterAdministrator();
       ConvenienceEngineAdministrator cea = rai.getConvenienceEngineAdministrator();
       int nodeId[] = cea.getClusterNodeIds();
       int dispatcherId = 0;
       String dispatcherIP = null;
       String p4Port = null;
       for (int i = 0; i < nodeId.length; i++) {
        if (cea.getClusterNodeType(nodeId[i]) != 1)
         continue;
        Properties dispatcherProp = cadm.getNodeInfo(nodeId[i]);
        dispatcherIP = dispatcherProp.getProperty("Host", "localhost");
        p4Port = cea.getServiceProperty(nodeId[i], "p4", "port");
        String[] loc = new String[3];
        loc[0] = dispatcherIP;
        loc[1] = p4Port;
        loc[2] = null;
        servers.add(loc);
       mInitialContext.close();
      } catch (NamingException e) {
      } catch (RemoteException e) {
      } finally {
       Thread.currentThread().setContextClassLoader(saveLoader);
      return servers;
    and the retreived server information used here in another class:
    public void run() {
      ReadLogsSession readLogsSession;
      int total = servers.size();
      for (Iterator iter = servers.iterator(); iter.hasNext();) {
       if (keepAlive) {
        try {
         Thread.sleep(500);
        } catch (InterruptedException e) {
         status = status + e.getMessage();
         System.err.println("LogReader Thread Exception" + e.toString());
         e.printStackTrace();
        String[] serverLocs = (String[]) iter.next();
        searchFilter.setDetails("[" + serverLocs[1] + "]");
        Properties prop = new Properties();
        prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
        prop.put(Context.PROVIDER_URL, serverLocs[0] + ":" + serverLocs[1]);
        System.err.println("LogReader run [" + serverLocs[0] + ":" + serverLocs[1] + "]");
        status = " Reading :[" + serverLocs[0] + ":" + serverLocs[1] + "] servers :[" + currentIndex + "/" + total + " ] ";
        prop.put("force_remote", "true");
        prop.put(Context.SECURITY_AUTHENTICATION, "none");
        try {
         Context ctx = new InitialContext(prop);
         Object ob = ctx.lookup("com.xom.sia.ReadLogsSession");
         ReadLogsSessionHome readLogsSessionHome = (ReadLogsSessionHome) PortableRemoteObject.narrow(ob, ReadLogsSessionHome.class);
         status = status + "Found ReadLogsSessionHome ["+readLogsSessionHome+"]";
         readLogsSession = readLogsSessionHome.create();
         if(readLogsSession!=null){
          status = status + " Created  ["+readLogsSession+"]";
          List l = readLogsSession.getAuditLogs(searchFilter);
          serverLocs[2] = String.valueOf(l.size());
          status = status + serverLocs[2];
          allRecords.addAll(l);
         }else{
          status = status + " unable to create  readLogsSession ";
         ctx.close();
        } catch (NamingException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (CreateException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (IOException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (Exception e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
       currentIndex++;
      jobComplete = true;
    The application is working for multiple server instances with a single cluster node but not working for multiple cusltered environment.
    Anybody knows what should be changed to handle more cluster nodes?
    Thanks,
    Gergely

    Thanks for the response.
    I was afraid that it would be something like that although
    was hoping for
    something closer to the application pools we use with IIS to
    isolate sites
    and limit the impact one badly behaving one can have on
    another.
    mmr
    "Ian Skinner" <[email protected]> wrote in message
    news:fe5u5v$pue$[email protected]..
    > Run CF with one instance. Look at your processes and see
    how much memory
    > the "JRun" process is using, multiply this by number of
    other CF
    > instances.
    >
    > You are most likely going to end up on implementing a
    "handful" of
    > instances versus "dozens" of instance on all but the
    beefiest of servers.
    >
    > This can be affected by how much memory each instance
    uses. An
    > application that puts major amounts of data into
    persistent scopes such as
    > application and|or session will have a larger foot print
    then a leaner
    > application that does not put much data into memory
    and|or leave it there
    > for a very long time.
    >
    > I know the first time we made use of CF in it's
    multi-home flavor, we went
    > a bit overboard and created way too many. After nearly
    bringing a
    > moderate server to its knees, we consolidated until we
    had three or four
    > or so IIRC. A couple dedicated to to each of our largest
    and most
    > critical applications and a couple general instances
    that ran many smaller
    > applications each.
    >
    >
    >
    >
    >

  • How to configure multiple cluster on multiple jvm

    Hello all,
    I have 15 caches and 6 servers with 8 processors each.
    I wish to split the 7 Caches on 3 servers as first cluster and remainig 8 caches on 3 servers as second clsuter.
    Can somebosy please provide the sample configuration.
    Thanks
    Vinay

    Hi Gary,
    clusters are separated from each other by their multicast cluster address and cluster port.
    Just choose two clusteraddress-port pairs in which both the ports and the cluster addresses are different (different ports are necessary, I believe, because you want to have multiple clusters on the same machine).
    You can specify the cluster address to the JVM with the Java property -Dtangosol.coherence.clusteraddress=... and you can specify the port with -Dtangosol.coherence.clusterport=....
    Specify the appropriate address and port to all the JVMs according to which cluster you want the JVM to be a member of.
    Alternatively you can specify an override file containing this information (you can read more about this on the wiki or in the users guide in the zip file (which is an export of the wiki).
    Best regards,
    Robert

  • Multiple Cluster Resource Names Possible?

    Scenario:
    We have 2003 R2 cluster resource groups that utilize multiple network name's per resource group to support legacy applications (and poor coding).  These must now be moved to a 2008 R2 Failover Cluster.  Is there a way to have only 1 IP address
    assigned, but have multiple network names to a 2008 R2 Resource Group?  The systems are already configured with the DisableStrictNameChecking and OptionalNames registry keys - but the cluster resource group is where I'm hitting a snag.
    Any way to accomplish this?  (Just add several names to the resource group using just the 1 IP)??
    Thanks!
    mark

    Hi Mark,
    I think we may have the following options to workaround this:
    1. Set several CNAMEs in DNS which point to the IP of your cluster.
    2. Edit Hosts file on clients so all different names are point to the same IP (the cluster). 
    If you have any feedback on our support, please send to [email protected]

  • Can web server plugin point to multiple cluster ?

    Hi,
              Can you point a web server plugin to multiple Weblogic 8.1 clusters ? If yes, how does the dynamic list work ?
              E.g. Web server X -> Cluster Y & Cluster Z
              In the plugin documentation it is not explicit that you can or can't do so (http://edocs.bea.com/wls/docs81/plugins/plugin_params.html#1149781).
              "WebLogicCluster : List of WebLogic Servers that can be used for load balancing. The server or cluster list is a list of host:port entries. If a mixed set of clusters and unclustered servers is specified, the dynamic list returned for this parameter will return only the clustered servers."
              Thanks,
              Antonio Goncalves

    you need to introduce a 'NameTrans' directive to redirect the url that you want to send to the back end
    for example, edit your obj.conf to look like
    <Object name="default">
    NameTrans fn="assign-name" name="passthrough" from="<give a top level url that you want to send to the back end"
    and restart the server.
    disabling java will reduce the web server process size significantly. unfortunately, this is a very manual process in 6.1. however, if you could consider migrating to web server 7 u2, where reverse proxy plugin is integrated within the produce (rather than as a separate plugin), u could easily disable-java and configure reverse proxy through either gui or cli command
    http://docs.sun.com/app/docs/doc/820-2204/disable-java-1?a=view
    http://docs.sun.com/app/docs/doc/820-2204/create-reverse-proxy-1?a=view
    pl. remember to run a deploy-config as soon as you run each of this above command. again, this would be relevant only if want to upgrade to web server 7

  • Processing in  Multiple Cluster Nodes

    Hi All,
    In our PI system we have 2 Java nodes due to some requirement. When the communication channel runs and we check the message log, in one Cluster node we have a successful message. In other Cluster Node we have an error message that says "File not found".
    The file processing is completeing successfully on one Cluster node. But I wanted to know if there is any way to suppress the processing of the same file by same channel on another Node. Some setting in administration or IB where we can get this done.
    Is there any way to get this done by some setting?
    Thanks,
    Rashmi.

    Hello!
    As per note #801926, please set the clusterSyncMode parameter on Advanced tab of the communication channel with LOCK value.
    And also check the entries 4 and 48 of the FAQ note #821267:
    4. FTP Sender File Processing in Cluster Environment
    48. File System(NFS) File Sender Processing in Cluster Environment
    Best regards,
    Lucas

  • Multiple index profile or cluster on FAST ESP 5.3

    Can we more than one index profile in like one index profile per collection or multiple cluster pointing to different  index profile.

    One per collection would mean one cluster per collection, which may be doable but tricky  to operate.
    The cluster is tied to only one index profile , so collections within the same cluster share the same Index profile.
    So, you can have a farm with multiple clusters, but usually this kind of setup in the past was done with the help of FAST consulting services.

  • File Being processed in two cluster nodes

    Hi ,
    We are having two cluster nodes and when my  adapter picks the file, the file is getting processed in 2 cluster nodes.
    I believe the file should get processed in either of the cluster node but not in both cluster nodes.
    Has any one faced this kind of situation in any of your projects where you might be having different cluster nodes.
    Thanks,
    Chandra.

    Hi Chandra
      Did u get a chance to see this post.. it may help
        Processing in  Multiple Cluster Nodes
    Regards,
    Sandeep

  • Query regarding Cluster nodes in CC

    Hi Experts,
    We have a query regarding the cluster nodes available in the CC monitoring.
    Can two nodes of a same channel can poll at the same time?
    Kindly suggest what should be done to make a specific cluster node of a CC polls at a particular time.
    Thanks
    Suganya.

    Hi,
    There is an answered thread on this
    Processing in  Multiple Cluster Nodes
    Regards,
    Manjusha

  • Apache Proxy Plug-in with multiple clusters?

    We are using the Apache Proxy Plug-in , the
              basic question is if we can place multiple cluster
              IP's in the same Location definition or do we have
              to have a different definition for each cluster?
              Currently we have only 1 cluster, but if we decide
              to segment the large cluster into smaller clusters
              this is a critical network,url question.
              For example we have 4 clusters containing 2 IP:PORT pairs each.
              IP1:P1,IP2:P2 <== Cluster 1
              IP3:P3,IP4:P4 <== Cluster 2
              IP5:P5,IP6:P6 <== Cluster 3
              IP7:P7,IP8:P8 <== Cluster 4
              Can we have a single location "application" that services all of these clusters?
              <Location /webapp>
              SetHandler weblogic-handler
              WebLogicCluster IP1:P1,IP2:P2,IP3:P3,IP4:P4,IP5:P5,IP6:P6,IP7:P7,IP8:P8
              </Location>
              Or do we have to have distinct entries?
              <Location /webapp1>
              SetHandler weblogic-handler
              WebLogicCluster IP1:P1,IP2:P2
              </Location>
              <Location /webapp2>
              SetHandler weblogic-handler
              WebLogicCluster IP3:P3,IP4:P4
              </Location>
              <Location /webapp3>
              SetHandler weblogic-handler
              WebLogicCluster IP5:P5,IP6:P6
              </Location>
              <Location /webapp4>
              SetHandler weblogic-handler
              WebLogicCluster IP7:P7,IP8:P8
              </Location>
              Regards.

    you should define location for each cluster.This would be a proper setup.
              The setup with same location definition would work partially, all the requests would be roundrobined across all the servers (all the clusters) and most likely you wouldn't get a proper failover.(cluster1 does not know about cluster2 from weblogic perspective)
              Vijay

  • How could I study Oracle linux cluster ?

    Hello buddy:
    I want to study Oracle linux cluster. so, where can I get started ? I read online documents, but they not tell you how to build a test enviroument using VMware.
    Could you give a hint ?

    user1934450 wrote:
    Purpose is studying.Studying what exactly? Clusters are more than just shared disks.
    I want to restablish a single instance and database using OS cluster. The shared disk just can be seen by on node server, then I can manually test this OS cluster and make switching between two nodes at least.This is not really a cluster. A cluster supports scalability - for example, if a process load is too large for a single node, some of it can spill over and be executed by another node or multiple other cluster nodes.
    If you talk about standard Linux clustering, that would be running some kind of number crunching s/w (weather modeling, crunching astronomy data, etc) and running this across multiple cluster nodes.
    A shared cluster storage system is one possible component of a cluster.
    Taking your example - a shared cluster file system is not needed. As the other nodes cannot use that file system (if it does, it can corrupt database files) - only a single non RAC database instance can use the database. Thus the file system can only be used by a single instance on a single server. No clustering needed.
    When that server fails, that file system (from the storage server) needs to be mounted on another server and the database instance started on that server.
    This is not really a true cluster - simply a high availability and redundant configuration using multiple servers.
    If you want to study actual real clustering - do some research using Google. Create a simple project like calculating pi for example and create a virtual 2 or 3 node cluster that run this processing in parallel - using a shared cluster file system for data storage.

  • Need help to understand about cluster

    Hi,
    I am a SQL developer, and need a little help to understand what clusters are. I never came across to create any cluster. Can someone plz help me with simple example, what is cluster and in which situation we create cluster?
    Thanks
    Shantanu

    >
    I am a SQL developer, and need a little help to understand what clusters are. I never came across to create any cluster. Can someone plz help me with simple example, what is cluster and in which situation we create cluster?
    >
    A cluster is used to store data from more than table together. The data would typically share the primary key. For example the scott DEPT and EMP table data is related based on the DEPTNO value so DEPTNO could be the cluster key.
    If you created a cluster and then created copies of those tables in the cluster (e.g. myDEPT and myEMP) Oracle would store the dept and emp data for the same DEPTNO value together, even in the same block.
    Then when you query dept and emp data using DEPTNO it will be faster to retrieve the DEPT and EMP data for that department since it is colocated in the same blocks.
    The drawbacks are that when you only want data from one of the tables (e.g. emp) Oracle has to skip over the DEPT data since some of it will be in the same blocks that the EMP data is in.
    So clusters and clustered tables are most useful when you always query multiple cluster tables using the cluster key. For some other operations they can be very inefficient.
    See the Admin Guide for an example using the DEPT and EMP tables
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/clustrs003.htm#ADMIN11747

  • 1 domain + 3 cluster - optimistic cache invalidate

    Weblogic-Release: 8.1.4.0 SP 4
    We are currently running 3 independent applications (A, B, C).
    Each deployed in a seperated domain/cluster, but sharing the same DB.
    Our UserBean (BMP,CMT), which is deployed in each of the 3 applications, is configured to use the default concurrency-strategy -> "Database".
    Due to heavy traffic (20M PI/per day) and massive DB-Access from one of the applications, we want to change our concurrency-strategy to "Optimistic" and make use of the "cache-between-transaction" feature.
    Reading the edocs I understand that cluster-wide invalidation of cached entities depends on running a cluster and accordant multicast settings.
    Does this even work for one "Domain" containing multiple "Cluster"-Elements (application A, B and C) in the config.xml ?
    I mean, will the EntityBean be invalidated in each independent cluster (but same JNDIName) or do any known issues exist in this scenario ?
    Any help would be very appreciated.
    Regards,
    Jan

    According chapter 2 Integrating Coherence Applications with Coherence*Web (
    Oracle® Coherence Integration Guide for Oracle Coherence) our cache-config shoud be merged with session-cache-config.xml . The name of the mergered cache-config shoud be session-cache-config.xml . What's the right approach to get cache storing business logic? Do I need to use CacheFactory.getCache(cacheName) - DefaultCacheFactory or SessionHelper.getFactory() ?

  • How multiple instances license is calculated?

    Hi
    I got bit confused about license. SQL Server license is per core based, for instance standard edition in 2 core physical machine is 2*$1793, correct me if I am wrong.
    1. Does cost remain same if I install additional instances on the same physical machine? 
    2. In case of multiple cluster instances.
    2. Does increasing node in cluster increases license cost? I believe so.
    Please refer Microsoft link, if possible.
    Thanks

    I think don’t need to buy multi license for multi instances on one server. You
    can run multiple instances of SQL Server 2005 on a single computer. Multiple instances are used by organizations that have several applications running on a server but want them to run in isolation so that any problem in one instance will not affect the other
    instances. In SQL Server 2005, you can now run multiple instances with the Workgroup, Standard, and Enterprise editions when they are licensed server/CAL or on a per-processor basis. Here is as list for Pricing and Licensing FAQ: 
    http://www.microsoft.com/sqlserver/2005/en/us/pricing-licensing-faq.aspx#,
    here is a thread about Licensing:
    Also http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/a5fd2fb7-dc2f-4736-85b9-1eb581e56a23
    http://www.microsoft.com/sql/howtobuy/default.mspx
    Raju Rasagounder Sr MSSQL DBA

Maybe you are looking for

  • How to restore my iTunes library

    Normally when I change PCs, upgrade restore the OS, etc. I have just copied my itunes music folder to an external hard drive.  Normally when I install iTunes on the new system I just go to edit->preferences->advanced and then change the folder from t

  • HP Color LaserJet CP2025dn Printer

    I just bought this printer but am unable to get it calibrated properly - it doesn't print with any black in colour files? Why does black only show up on text files?

  • Java stored proc from proxy Java classes generated from a web service?

    Hi gurus, I have searched "Java Stored Procedure" on this forum but could not find what I am looking for, so I have to post again. I need to use a web service and my client app is written in PowerBuilder 11 (Sybase), which claims that it will create

  • Template/Page size questions

    Hey guys, I will explain what I am trying to do then maybe someone can walk me through it. We have a advertisement flyer type thing that I need to come up with an ad for, each ad is 4x3. I need to come up with an ad front and back, and figured that P

  • HT1338 when I perform a software update search, the system give me an error

    When I perform a software update search, after start to looking the system gave me an error... Do you know why?