You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/06/11 10:58:23 UTC

[2/3] incubator-ignite git commit: # IGNITE-843 Added near cache.

# IGNITE-843 Added near cache.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/241fb8b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/241fb8b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/241fb8b4

Branch: refs/heads/ignite-843
Commit: 241fb8b405876990d00a8c393676a3603b4efe2d
Parents: 81b98a1
Author: AKuznetsov <ak...@gridgain.com>
Authored: Thu Jun 11 15:58:03 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
Committed: Thu Jun 11 15:58:03 2015 +0700

----------------------------------------------------------------------
 modules/webconfig/nodejs/db.js                  |  7 +++++-
 .../nodejs/public/form-models/caches.json       | 25 ++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/241fb8b4/modules/webconfig/nodejs/db.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/db.js b/modules/webconfig/nodejs/db.js
index 9b933f7..f8cc2bb 100644
--- a/modules/webconfig/nodejs/db.js
+++ b/modules/webconfig/nodejs/db.js
@@ -111,7 +111,12 @@ var CacheSchema = new Schema({
     managementEnabled: Boolean,
     readFromBackup: Boolean,
     copyOnRead: Boolean,
-    maxConcurrentAsyncOperations: Number
+    maxConcurrentAsyncOperations: Number,
+    nearConfiguration: {
+        nearStartSize: Number,
+        nearEvictionPolicy: {type: String, enum: ['LRU', 'RND', 'FIFO', 'Sorted']},
+        atomicSequenceReserveSize: Number
+    }
 });
 
 exports.Cache = mongoose.model('Cache', CacheSchema);

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/241fb8b4/modules/webconfig/nodejs/public/form-models/caches.json
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/form-models/caches.json b/modules/webconfig/nodejs/public/form-models/caches.json
index dfc028d..e86f673 100644
--- a/modules/webconfig/nodejs/public/form-models/caches.json
+++ b/modules/webconfig/nodejs/public/form-models/caches.json
@@ -362,6 +362,31 @@
       ]
     },
     {
+      "label": "Near cache",
+      "model": "nearConfiguration",
+      "fields": [
+        {
+          "label": "Start size",
+          "type": "text",
+          "model": "nearStartSize",
+          "placeholder": "375000",
+          "tip": [
+            "Initial cache size for near cache which will be used to pre-create internal hash table after start."
+          ]
+        },
+        {
+          "label": "Eviction policy",
+          "type": "dropdown",
+          "model": "nearEvictionPolicy",
+          "placeholder": "Choose eviction policy",
+          "items": "evictionPolicies",
+          "tip": [
+            "Cache expiration policy."
+          ]
+        }
+      ]
+    },
+    {
       "label": "Misc",
       "fields": [
         {