http://sourceforge.net/apps/trac/reddwarf/
1 这里面有对RedDwarf Server的所有介绍 我现在的重点是要配置多节点
CChapter 5: Administration and Configuration
Server VM Options -- How to modify the options used to start RedDwarf Server.
Server Properties -- The Javadoc page listing the configurable RedDwarf server properties.
Enabling Java BDB -- How to switch from the C implementation of BerkeleyDB to the Java implementation.
C
2 这里面就讲到服务器端管理和配置 选择server properties
进入页面之后
For example configuration files of the different node types, see the
single-node.properties
,
core-server.properties
, and
app-node.properties
files.
Configuring a Single Node System
A single node systems consists of a Darkstar Server running in a single Java Virtual Machine. This is the default server type for RedDwarf. Note that the Required Properties will also need to be specified.Configuring a Multi-Node System
可以看到对单节点系统描述相当简单,多节点系统描述较多
The RedDwarf Server can be run on multiple nodes configured to work together in a cluster. This multi-node configuration requires a special core server node to run critical RedDwarf operations, with the remaining nodes, the application nodes, cooperating to run the application. Application nodes can be dynamically added or removed from the cluster.
The core server node must be running before starting the application nodes.
自己翻译的:
RedDwarf Server 能运行在一个集群的多个节点中,多节点配置需要一个特殊的核心节点来运行重要的RedDwarf操作
其他的节点是应用程序节点,合作运行的应用程序,应用程序节点单能够动态的在集群中添加和删除。
核心服务节点必须在应用程序之前启动
在上面可以看到这些文字
里面列出了必须配置的属性和可选的属性
core-server.properties
# Multi-node core server properties
# NOTE The core server node must be started before any application nodes.
# Required properties.
# --------------------
# Start a core server node
com.sun.sgs.node.type = coreServerNode
# Application name. This must be the same on each node.
#com.sun.sgs.app.name = Foo
# File system root. This is file system space available for
# Project Darkstar use, and must be a valid directory name.
#com.sun.sgs.app.root = /var/tmp/fooFiles
# Optional properties.
# --------------------
# The TCP port of the data service's shared network server
#com.sun.sgs.impl.service.data.store.net.server.port = 44530
# The TCP port of the watchdog service's shared network server
#com.sun.sgs.impl.service.watchdog.server.port = 44533
# The TCP port of the node mapping service's shared network server
#com.sun.sgs.impl.service.nodemap.server.port = 44535
com.sun.sgs.node.type = coreServerNode 定值
com.sun.sgs.app.name = Foo 每个节点的应用程序名称必须一样
com.sun.sgs.app.root 存放数据的路径
app-node.properties
# Multi-node application node properties
# NOTE The core server node must be started before any application nodes.
# Required properties.
# --------------------
# Start an application node
com.sun.sgs.node.type = appNode
# The host name of the machine the core server was started on.
#com.sun.sgs.server.host = core-server-name
# Application name. This must be the same on each node.
#com.sun.sgs.app.name = Foo
# File system root. This is file system space available for
# Project Darkstar use, and must be a valid directory name.
#com.sun.sgs.app.root = /var/tmp/fooFiles
# Application listener. Specify the fully qualified class name of
# the listener.
#com.sun.sgs.app.listener = com.app.pkg.FooAppListener
# Application port. The TCP port on which to listen for
# client connections for the default protocol and transport.
#com.sun.sgs.impl.transport.tcp.listen.port = port-number
# Optional properties.
# --------------------
# The TCP port of the data service's shared network server
#com.sun.sgs.impl.service.data.store.net.server.port = 44530
# The TCP port of the watchdog service's shared network server
#com.sun.sgs.impl.service.watchdog.server.port = 44533
# The TCP port of the node mapping service's shared network server
#com.sun.sgs.impl.service.nodemap.server.port = 44535
com.sun.sgs.node.type = appNode 定值
这个地方就是电脑名称com.sun.sgs.server.host = core-server-name
其他的都一样。