@open-mercato/cache-provider-ignite 0.0.0-stage → 0.11.1-develop.9003.1.ce86c31a07
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -2
- package/dist/connection.d.ts +16 -0
- package/dist/connection.js +206 -0
- package/dist/connection.js.map +7 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +7 -0
- package/dist/layout.d.ts +25 -0
- package/dist/layout.js +74 -0
- package/dist/layout.js.map +7 -0
- package/dist/settings.d.ts +47 -0
- package/dist/settings.js +99 -0
- package/dist/settings.js.map +7 -0
- package/dist/strategy.d.ts +11 -0
- package/dist/strategy.js +176 -0
- package/dist/strategy.js.map +7 -0
- package/docker/ignite-config.xml +95 -0
- package/docker/ignite-secure-config.xml +115 -0
- package/package.json +62 -3
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
Single-node Apache Ignite 2.x configuration for the authenticated + TLS
|
|
4
|
+
profile of the Open Mercato cache provider.
|
|
5
|
+
|
|
6
|
+
- Ignite 2.x built-in authentication requires native persistence, so the
|
|
7
|
+
default data region is persistent and the cluster activates on start.
|
|
8
|
+
- The thin client connector accepts TLS only, using the PKCS#12 key store
|
|
9
|
+
mounted at /opt/om-tls/server.p12 (password from OM_IGNITE_KEYSTORE_PASSWORD).
|
|
10
|
+
Client certificates are not requested.
|
|
11
|
+
- The same "om-cache-*" template (cache group, 64 partitions,
|
|
12
|
+
CreatedExpiryPolicy) as the plain profile.
|
|
13
|
+
-->
|
|
14
|
+
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
15
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
16
|
+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
17
|
+
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
|
|
18
|
+
<property name="igniteInstanceName" value="om-cache-secure"/>
|
|
19
|
+
<property name="peerClassLoadingEnabled" value="false"/>
|
|
20
|
+
<property name="metricsLogFrequency" value="0"/>
|
|
21
|
+
<property name="authenticationEnabled" value="true"/>
|
|
22
|
+
<property name="clusterStateOnStart" value="ACTIVE"/>
|
|
23
|
+
|
|
24
|
+
<property name="clientConnectorConfiguration">
|
|
25
|
+
<bean class="org.apache.ignite.configuration.ClientConnectorConfiguration">
|
|
26
|
+
<property name="port" value="10800"/>
|
|
27
|
+
<property name="portRange" value="0"/>
|
|
28
|
+
<property name="thinClientEnabled" value="true"/>
|
|
29
|
+
<property name="sslEnabled" value="true"/>
|
|
30
|
+
<property name="sslClientAuth" value="false"/>
|
|
31
|
+
<property name="useIgniteSslContextFactory" value="false"/>
|
|
32
|
+
<property name="sslContextFactory">
|
|
33
|
+
<bean class="org.apache.ignite.ssl.SslContextFactory">
|
|
34
|
+
<property name="keyStoreType" value="PKCS12"/>
|
|
35
|
+
<property name="keyStoreFilePath" value="/opt/om-tls/server.p12"/>
|
|
36
|
+
<property name="keyStorePassword" value="#{systemEnvironment['OM_IGNITE_KEYSTORE_PASSWORD']}"/>
|
|
37
|
+
<property name="protocols">
|
|
38
|
+
<list>
|
|
39
|
+
<value>TLSv1.2</value>
|
|
40
|
+
<value>TLSv1.3</value>
|
|
41
|
+
</list>
|
|
42
|
+
</property>
|
|
43
|
+
<property name="trustManagers">
|
|
44
|
+
<bean class="org.apache.ignite.ssl.SslContextFactory" factory-method="getDisabledTrustManager"/>
|
|
45
|
+
</property>
|
|
46
|
+
</bean>
|
|
47
|
+
</property>
|
|
48
|
+
</bean>
|
|
49
|
+
</property>
|
|
50
|
+
|
|
51
|
+
<property name="dataStorageConfiguration">
|
|
52
|
+
<bean class="org.apache.ignite.configuration.DataStorageConfiguration">
|
|
53
|
+
<property name="walMode" value="LOG_ONLY"/>
|
|
54
|
+
<property name="walSegmentSize" value="#{16 * 1024 * 1024}"/>
|
|
55
|
+
<property name="maxWalArchiveSize" value="#{256L * 1024 * 1024}"/>
|
|
56
|
+
<property name="defaultDataRegionConfiguration">
|
|
57
|
+
<bean class="org.apache.ignite.configuration.DataRegionConfiguration">
|
|
58
|
+
<property name="name" value="om-cache-region"/>
|
|
59
|
+
<property name="persistenceEnabled" value="true"/>
|
|
60
|
+
<property name="initialSize" value="#{64L * 1024 * 1024}"/>
|
|
61
|
+
<property name="maxSize" value="#{T(java.lang.Long).parseLong(systemEnvironment['OM_IGNITE_REGION_MB'] ?: '128') * 1024 * 1024}"/>
|
|
62
|
+
</bean>
|
|
63
|
+
</property>
|
|
64
|
+
</bean>
|
|
65
|
+
</property>
|
|
66
|
+
|
|
67
|
+
<property name="cacheConfiguration">
|
|
68
|
+
<list>
|
|
69
|
+
<bean class="org.apache.ignite.configuration.CacheConfiguration">
|
|
70
|
+
<property name="name" value="om-cache-*"/>
|
|
71
|
+
<property name="groupName" value="om-cache"/>
|
|
72
|
+
<property name="cacheMode" value="PARTITIONED"/>
|
|
73
|
+
<property name="atomicityMode" value="ATOMIC"/>
|
|
74
|
+
<property name="backups" value="0"/>
|
|
75
|
+
<property name="eagerTtl" value="true"/>
|
|
76
|
+
<property name="affinity">
|
|
77
|
+
<bean class="org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction">
|
|
78
|
+
<property name="partitions" value="64"/>
|
|
79
|
+
</bean>
|
|
80
|
+
</property>
|
|
81
|
+
<property name="expiryPolicyFactory">
|
|
82
|
+
<bean class="javax.cache.expiry.CreatedExpiryPolicy" factory-method="factoryOf">
|
|
83
|
+
<constructor-arg>
|
|
84
|
+
<bean class="javax.cache.expiry.Duration">
|
|
85
|
+
<constructor-arg value="SECONDS"/>
|
|
86
|
+
<constructor-arg value="#{T(java.lang.Long).parseLong(systemEnvironment['OM_IGNITE_MAX_TTL_SECONDS'] ?: '86400')}"/>
|
|
87
|
+
</bean>
|
|
88
|
+
</constructor-arg>
|
|
89
|
+
</bean>
|
|
90
|
+
</property>
|
|
91
|
+
</bean>
|
|
92
|
+
</list>
|
|
93
|
+
</property>
|
|
94
|
+
|
|
95
|
+
<property name="discoverySpi">
|
|
96
|
+
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
|
|
97
|
+
<property name="localAddress" value="127.0.0.1"/>
|
|
98
|
+
<property name="ipFinder">
|
|
99
|
+
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
|
|
100
|
+
<property name="addresses">
|
|
101
|
+
<list>
|
|
102
|
+
<value>127.0.0.1:47500..47502</value>
|
|
103
|
+
</list>
|
|
104
|
+
</property>
|
|
105
|
+
</bean>
|
|
106
|
+
</property>
|
|
107
|
+
</bean>
|
|
108
|
+
</property>
|
|
109
|
+
<property name="communicationSpi">
|
|
110
|
+
<bean class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
|
|
111
|
+
<property name="localAddress" value="127.0.0.1"/>
|
|
112
|
+
</bean>
|
|
113
|
+
</property>
|
|
114
|
+
</bean>
|
|
115
|
+
</beans>
|
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/cache-provider-ignite",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.11.1-develop.9003.1.ce86c31a07",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Apache Ignite 2.x cache provider for the Open Mercato cache service (thin client)",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"docker",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "node build.mjs",
|
|
17
|
+
"test": "jest --config jest.config.cjs",
|
|
18
|
+
"test:containers": "OM_CACHE_PROVIDER_CONTAINER_TESTS=1 jest --config jest.config.cjs --runInBand --testPathPatterns container",
|
|
19
|
+
"qualify": "node scripts/qualify.mjs",
|
|
20
|
+
"typecheck": "tsc --noEmit"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"cache",
|
|
31
|
+
"open-mercato",
|
|
32
|
+
"cache-provider",
|
|
33
|
+
"apache-ignite",
|
|
34
|
+
"ignite"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@open-mercato/cache": ">=0.11.1-develop.9003.1.ce86c31a07"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"apache-ignite-client": "1.0.0",
|
|
44
|
+
"zod": "^4.6.6"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@open-mercato/cache": "0.11.1-develop.9003.1.ce86c31a07",
|
|
48
|
+
"@types/jest": "^30.0.0",
|
|
49
|
+
"@types/node": "^26.4.0",
|
|
50
|
+
"esbuild": "^0.28.2",
|
|
51
|
+
"jest": "^30.4.2",
|
|
52
|
+
"testcontainers": "^12.0.3",
|
|
53
|
+
"ts-jest": "^29.4.12",
|
|
54
|
+
"typescript": "7.0.2"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/open-mercato/open-mercato",
|
|
62
|
+
"directory": "packages/cache-provider-ignite"
|
|
63
|
+
},
|
|
64
|
+
"stableVersion": "0.11.0"
|
|
6
65
|
}
|