Loading...
ActiveSpaces
ActiveSpaces Development
Corporate
Development
Metaspace Connection Attributes
Online
TIBCO
TIBCO ActiveSpaces
TIBCO ActiveSpaces Development
Training
https://tibcoactivespacesonlinetraining.blogspot.com/2015/06/exposing-metaspace-connection-attributes.html
When creating ActiveSpaces applications,
developers should make sure that they expose the metaspace link attributes so
that they can be adjusted by administrator at deployment time. The Metaspace
connection attributes are contained in the MemberDef object that is passed to
Metaspace. Connect (). At a minimum, the following MemberDef attributes should
be exposed:
Member name:
• If particular, this should be unique
in the Metaspace.
• If not specified, a unique name is
generated automatically
• If you intend to use the process as a
seeder on a shared-nothing persisted space you MUST specify a name for the process.
Metaspace name:
• If not specified, defaults to “ms.”
• Discovery URL:
• If not specified, defaults to
“tibpgm.”
• Listen URL
In some cases (typically “server”
applications) it is recommended to expose these attributes:
DataStore:
• The directory to use to store
shared-nothing persistence files. Only useful if the application will be
seeding on shared-nothing persistent spaces.
RemoteDiscovery:
• Only needed if you intend the process
to be a remote client proxy and be able to accept and service connections from
remote clients.
WorkerThreadCount:
• Adjusts the size of the worker thread
pool used by remote invocation. Only useful if the application will service
some remote invocation requests.
Optionally, the following attributes
could be exposed as well (if one wants to give the administrator the ability to
adjust more “low level” settings):
Timeout:
• Internal ACTIVESPACES protocol timeout
for operations (default is 60s)
RxBufferSize:
• adjust the amount of memory allocated
as a receive buffer per TCP connection. If the metaspace will contain a large
number of directly connected members you may want to adjust this value down
from the default 2 MB in order to reduce memory necessities.
• Adjusting this parameter down may help
reduce memory consumption when there are a lot of (direct) members in the
metaspace.
• For example, if the application is
only going to be a leech and read/write small records, it will probably not
need to use a full 2 MB of buffer space.
• The downside of making this parameter
too small is increased CPU resource usage.
TcpThreadCount:
• Adjusts the size of the thread pool
used to distribute incoming TCP data from other members. Only useful for
applications that seed data.
The final attribute of the MemberDef is
the Context tuple. The context tuple is provided to the application programmer
to help recognize classes of applications connecting to the metaspace or to
spaces when they are monitor by another application using a
MetaspaceMemberListener or a SpaceMemberListener, because this context tuple
will be passed to the listeners inside the membership event.
ActiveSpaces,
ActiveSpaces Development,
Corporate,
Development,
Metaspace Connection Attributes,
Online,
TIBCO,
TIBCO ActiveSpaces,
TIBCO ActiveSpaces Development,
Training
Training
5219838509748315183
Post a Comment Default Comments Facebook Comments
Home
item
Blog Archive
Popular Posts
-
When creating ActiveSpaces applications, developers should make sure that they expose the metaspace link attributes so that they can be...
-
· Remember that seeding and leeching is a “per space” state: a process can seed on one space and leech on another. · ...
-
ActiveSpaces provides : • Coherent, in-memory, data storage and recovery. • further than a few network data transfer options, ...
-
TIBCO ActiveSpaces is a peer-to-peer dispersed in-memory data grid-a form of virtual shared memory that is simulated on dispersed devi...
-
Fault-tolerance and Persistence If you are a seeder or replicator of the key for a get operation, it will be serviced at the very low la...
-
Threading Many ActiveSpaces API objects are thread safe (meaning that multiple threads can use them at the same time) ...