此内容没有您所选择的语言版本。
Chapter 9. Data Grid Server Reference
9.1. Data Grid Server 复制链接链接已复制到粘贴板!
Data Grid server provides fast, reliable, and secure access to your data. This release of the server improves on previous versions and offers:
- Small code-base with minimal duplication of existing functionality (e.g. configuration).
- Embeddable: the server should allow for easy testability in both single and clustered configurations.
- RESTful administration capabilities.
- Logging with Apache Log4j 2.
- Security with WildFly Elytron SPIs.
9.1.1. Directory Structure 复制链接链接已复制到粘贴板!
Server distributions have the following directory structure:
-
/bin: scripts to start the server and create/modify users. -
/boot:JARfiles to boot the server. -
/docs: examples and component licenses. -
/lib: serverJARfiles. /server: default server instance folder.-
/server/conf: configuration files. -
/server/data: data files organized by container name. -
/server/lib: extensionJARfiles for custom filters, listeners, and so on. -
/server/log: server log files.
-
9.1.2. Server Paths 复制链接链接已复制到粘贴板!
Servers use the following paths:
-
infinispan.server.homedefaults to the directory that contains the server distribution. infinispan.server.rootcontains configuration and data for Data Grid servers and defaults to theserverdirectory underinfinispan.server.home.
Multiple roots can exist in the same or different directories. To start multiple server instances you can specify the path toinfinispan.server.rootwith a command line argument.NoteWhen the server starts it locks
infinispan.server.rootto avoid concurrent use by multiple server instances.-
infinispan.server.configurationdefaults toinfinispan.xml, which resides in theconffolder underinfinispan.server.root.
9.1.3. Command Arguments 复制链接链接已复制到粘贴板!
The server.sh|bat startup script includes arguments that you can use to get information and configure the server runtime environment.
To view the available command arguments, include the --help or -h option as follows:
bin/server.sh -h
$ bin/server.sh -h
9.1.4. Logging Configuration 复制链接链接已复制到粘贴板!
You configure logging with log4j2.xml in the server/conf directory.
9.1.5. Configuration 复制链接链接已复制到粘贴板!
The server configuration extends the standard Data Grid configuration with the following server-specific elements:
-
securityconfigures the available security realms for the endpoints. -
cache-containermultiple containers may be configured, distinguished by name. -
endpointslists the enabled endpoint connectors (hotrod, rest, and so on). -
socket-bindingslists the socket bindings.
The following is an example server configuration:
9.1.6. Additional Details 复制链接链接已复制到粘贴板!
The following is a list of additional details about the server, in no particular order:
- All containers handled by the same server share the same thread pools and transport.