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. 在UITouch事件中画圆圈-iOS8 Swift基础教程

    这篇教程主要内容展示如何利用Core Graphics Framework画圆圈,当用户点击屏幕时随机生成不同大小的圆,这篇教程在Xcode6和iOS8下编译通过. 打开Xcode,新建项目选择Sin ...

  2. Xcode的Architectures、Valid Architectures和Build Active Architecture Only属性

    Architectures 这代表,在这个项目里你想要Xcode编译的目标设备列表. Valid Architectures 还不是太明确这个设置的意图,但是一般来说是不需要更改的,和Architec ...

  3. ios 调用webservice整理

    资料地址:http://blog.sina.com.cn/s/blog_a30ee5f701016yn3.html 学iphone开发有一段时间了,对于我这个新手来说,学习过程中,遇到不少问题,尤其是 ...

  4. USACO Party Lamps 【Binary code solvution】【规律】

    写这道题目的时候遇到了一个令人诧异的问题,就是平台上跑来的结果和我本机跑起来的结果不一样. 后来Debug了之后才发现是我数组开小了,只开到100 的数组竟然都去访问他170位的地址肯定要跪成翔啊.. ...

  5. STRUTS2获得session和request

    在struts1中,获得到系统的request或者session对象非常方便,都是按照形参传递的,但是在struts2中,request和session都被隐藏了struts提供两种方式访问sessi ...

  6. DG创建和提取虚拟机文件

    http://www.cr173.com/soft/33359.html http://www.diskgenius.cn/help/newvmdk.php

  7. cocos2dx进阶学习之CCObject

    继承关系 CCObject -> CCCopying 类定义 class CC_DLL CCObject : public CCCopying { public: // object id, C ...

  8. linux 远程桌面工具NX

    1.在linux服务器上需要安装3个文件,下载地址为: http://www.nomachine.com/download-package.php?Prod_Id=1977 nxclient-3.4. ...

  9. SystemTap----将SystemTap脚本编译成内核模块

      当运行SystemTap脚本时,会根据脚本生成一个内核模块,然后插入到系统中执行后退出.这个过程总共分为5个阶段:parse, elaborate, translate, compile, run ...

  10. 从零開始开发Android版2048 (四) 分数、重置、结束

    这一篇的内容主要是在上一篇的基础上,增加分数计算(包含当前分数和最高分数).游戏结束的推断以及游戏界面的重置这三个部分的功能. 一.分数的计算和保存          首先,2048这个游戏的分数包含 ...