Note: This document was based on WebSphere Extreme Scale 8.6. It doesn’t supported for lower version on some operate.

1. Download the extreme scale to your own PC, Extract it to a directry.

Server Side:

2. Open a DOS window. And direct to ${xs install home}/bin

3. Start a catalog server.

startXsServer ${catalogServer_name}

Help info:

<server> [options]

--------CatalogServer Arguments-------------------------------

-catalogServiceEndPoints <server:host:port:port,server:host:port:port>

-quorum true|false

-heartbeat 0|1|-1|10|-10

-clusterSecurityFile <cluster security xml file>

-clusterSecurityUrl <cluster security xml URL>

-domain <domain name>

-transport <ORB|XIO>

--------Common Arguments-------------------------------

-listenerHost <hostname>

-listenerPort <port>

-serverProps <server properties file>

-JMXServicePort <port>

-JMXConnectorPort <port>

-traceSpec <trace specification>

-traceFile <trace file>

-timeout <seconds>

-script <script file>

-jvmArgs <JVM arguments>

Note : The default configuration port is [localhost], the default configuration port is [2809].

Also multiple endpoints was supported only with separated with ‘,’.

4. Start a container Server:

StartXsServer.bat  ${container_Server_name}  -objectgridFile ${file_name or  location} –catalogServiceEndpoints  localhost:2809

Help info:

<server> -objectgridFile <xml file> [options]

<server> -objectgridUrl <xml URL> [options]

---------------Container Arguments ---------------------------

-catalogServiceEndPoints <host:port,host:port>

-deploymentPolicyFile <deployment policy xml file>

-deploymentPolicyUrl <deployment policy xml URL>

-haManagerPort <port>

-zone <zoneName>
--------Common Arguments-------------------------------

-listenerHost <hostname>

-listenerPort <port>

-serverProps <server properties file>

-JMXServicePort <port>

-JMXConnectorPort <port>

-traceSpec <trace specification>

-traceFile <trace file>

-timeout <seconds>

-script <script file>

-jvmArgs <JVM arguments>

Example for objectgrid.xml  & deployment_objectgrid.xml

Objectgrid.xml

<?xml version="1.0" encoding="UTF-8"?>

<objectGridConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

     xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd" 

     xmlns="http://ibm.com/ws/objectgrid/config">

    <objectGrids>

        <objectGrid name="accounting">

            <backingMap name="customer" readOnly="false" copyKey="true"/>

        </objectGrid>

    </objectGrids>

</objectGridConfig>

Deployment_objectgrid.xml

<?xml version="1.0" encoding="UTF-8"?>
<deploymentPolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibm.com/ws/objectgrid/deploymentPolicy ../deploymentPolicy.xsd"
xmlns="http://ibm.com/ws/objectgrid/deploymentPolicy"> <objectgridDeployment objectgridName="accounting">
<mapSet name="mapSet1" numberOfPartitions="1" minSyncReplicas="0" maxSyncReplicas="2"
maxAsyncReplicas="1">
<map ref="customer"/>
</mapSet>
</objectgridDeployment>
</deploymentPolicy>
 

Client Side: (Java code)

Condition: ObjectGrid.jar must be approved by version 8.6

5. Get the ObjectGrid

ObjectGridManager ogManager = ObjectGridManagerFactory.getObjectGridManager();

ClientClusterContext ccContext = ogManager.connect(“localhost:2809”, null, null);

ObjectGrid og = ogManager.getObjectGrid(ccConext, “accounting”);

6. Execute query by object query

Session session = og.getSession();

ObjectMap customerMap =  session.getMap(“customer”);

String customer = customerMap.get(“0001”);

If(customer==null){

                customerMap.insert(“0001”, ”Insert UserName_Freud”);

}else{

                customerMap.update(“0001”, “Updated UserName_Freud”);

}

Customer = (String) customerMap.get(“0001”);

System.out.println(“The customer Name is : ” + customer);

7. Parallel query

Waiting to be edit…

8. Map Agent

Waiting to be edit…

9. Add Index

Waiting to be edit…

10. Relationship – Cascade (Waiting to be edit…)

One to one

One to many

Many to one

初探eXtreme scale的更多相关文章

  1. 【尺度不变性】An Analysis of Scale Invariance in Object Detection – SNIP 论文解读

    前言 本来想按照惯例来一个overview的,结果看到1篇十分不错而且详细的介绍,因此copy过来,自己在前面大体总结一下论文,细节不做赘述,引用文章讲得很详细,另外这篇paper引用十分详细,如果做 ...

  2. 跟我一起云计算(5)——Shards

    什么是sharding Sharding的基本思想就要把一个数据库切分成多个部分放到不同的数据库 (server)上,从而缓解单一数据库的性能问题.不太严格的讲,对于海量数据的数据库,如果是因为表多而 ...

  3. Shards

    跟我一起云计算(5)——Shards   什么是sharding Sharding的基本思想就要把一个数据库切分成多个部分放到不同的数据库 (server)上,从而缓解单一数据库的性能问题.不太严格的 ...

  4. 基于Linux的WebSphere性能调优与故障诊断

    一.关于was数据源等问题的配置 (1)关于was数据源连接池的最大.最小配置多大合适?怎样去计算? (2)关于JVM的配置,64位系统,64位WAS,最值小和最大配置多大最优?怎样去计算? (3)应 ...

  5. AcmeAir

    AcmeAir是一款由原 IBM 新技术架构部资深工程师Andrew Spyker,利用Netflix开源的Netflix OSS打造的开源电子商务应用.访问这里可以了解原作者的设计初衷: http: ...

  6. Docker 监控实战

    如今,越来越多的公司开始使用 Docker 了,现在来给大家看几组数据: 2 / 3 的公司在尝试了 Docker 后最终使用了它 也就是说 Docker 的转化率达到了 67%,而转化市场也控制在 ...

  7. 几种 Docker 监控工具对比

    轻量级虚拟化容器 Docker,自发布以来便广受业界关注,在开源界和企业界掀起了一阵风.Docker 容器相对于 VM 有以下几个优势:启动速度快:资源利用率高:性能开销小. 从图中可以看出 Dock ...

  8. 内存数据网格IMDG简单介绍

    1 简单介绍 将内存作为首要存储介质不是什么新奇事儿,我们身边有非常多主存数据库(IMDB或MMDB)的样例.在对主存的使用上.内存数据网格(In Memory Data Grid,IMDG)与IMD ...

  9. 内存数据网格IMDG简介

    1 简介 将内存作为首要存储介质不是什么新鲜事儿,我们身边有很多主存数据库(IMDB或MMDB)的例子.在对主存的使用上,内存数据网格(In Memory Data Grid,IMDG)与IMDB类似 ...

随机推荐

  1. Swift--基本数据类型(一)

    不像更多语言中,X不要求你写一个分号(;)在你的代码中的每一个语句后,尽管能够这样做.然而,假设你想在一行中写入多个单独的语句分号是必需的: .    1  let cat = "" ...

  2. 键盘过滤第一个例子ctrl2cap(4.1~4.4)汇总,测试

    键盘过滤第一个例子ctrl2cap(4.1~4.4)汇总,测试 完整源代码 /// /// @file ctrl2cap.c /// @author wowocock /// @date 2009-1 ...

  3. php开启虚拟域名功能

    1.开启apache的mod_rewrite功能 关闭注释 LoadModule rewrite_module modules/mod_rewrite.so 2.引入http-vhosts.conf文 ...

  4. nginx负载 发向代理配置文件参考

    来自server+iis  linux可做参考 : #user nobody; worker_processes 8; #worker_cpu_affinity 00000001 00000010 0 ...

  5. Appium 服务命令行参数

    Appium  可以直接通过命令行启动,同样支持命令行参数配置 参考: http://appium.io/slate/cn/master/ 使用方法 例如: appium  --shell 服务器标志 ...

  6. ArcEngine 图层无闪烁刷新

    使用AE的同行经常会遇到这样的问题,图层刷新.目前常用的有以下几种方法: 1.完全刷新 MapControl.Refresh(); 2.局部刷新 MapControl.Refresh(esriView ...

  7. ZOJ 3204 Connect them MST-Kruscal

    这道题目麻烦在输出的时候需要按照字典序输出,不过写了 Compare 函数还是比较简单的 因为是裸的 Kruscal ,所以就直接上代码了- Source Code : //#pragma comme ...

  8. 一个Java程序的执行过程(转)

    我们手工执行java程序是这样的:  1.在记事本中或者是UE的文本编辑器中,写好源程序:  2.使用javac命令把源程序编译成.class文件:    编译后的.class(类字节码)文件中会包含 ...

  9. linux下find命令-atime,-ctime,-mtime真正含义

    linux下的-atime,-ctime,-mtime含义我们经常会在论坛或者群里面被问到,在linux或者unix下如何查看某文件的创建日期?经常又会有人说用find命令加选项-ctime,其实这里 ...

  10. linux c coding style

    Linux kernel coding style This is a short document describing the preferred coding style for the lin ...