Comparing version 1.0.11 to 1.0.12
@@ -9,16 +9,17 @@ var fhComponentMetrics = require('fh-component-metrics'); | ||
var metricsTitle = (process.env.FH_TITLE || 'fhsync') + '_stats'; | ||
var METRIC_KEYS = { | ||
WORKER_JOB_ERROR_COUNT: "worker-get-job-error-count", | ||
WORKER_JOB_TOTAL_COUNT: "worker-job-count", | ||
WORKER_JOB_FAILURE_COUNT: "worker-job-failure-count", | ||
WORKER_JOB_SUCCESS_COUNT: "worker-job-success-count", | ||
WORKER_JOB_PROCESS_TIME: "worker-job-process-time", | ||
QUEUE_OPERATION_TIME: "queue-operation-time", | ||
HANDLER_OPERATION_TIME: "sync-handler-operation-time", | ||
SYNC_SCHEDULER_CHECK_TIME: "sync-scheduler-check-time", | ||
SYNC_REQUEST_TOTAL_PROCESS_TIME: "sync-request-total-process-time", | ||
PENDING_CHANGE_PROCESS_TIME: "pending-change-process-time", | ||
SYNC_API_PROCESS_TIME: "sync-api-process-time", | ||
MONGODB_OPERATION_TIME: "mongodb-operation-time", | ||
WORKER_QUEUE_SIZE: "worker-queue-size" | ||
WORKER_JOB_ERROR_COUNT: metricsTitle + "_worker-get-job-error-count", | ||
WORKER_JOB_TOTAL_COUNT: metricsTitle + "_worker-job-count", | ||
WORKER_JOB_FAILURE_COUNT: metricsTitle + "_worker-job-failure-count", | ||
WORKER_JOB_SUCCESS_COUNT: metricsTitle + "_worker-job-success-count", | ||
WORKER_JOB_PROCESS_TIME: metricsTitle + "_worker-job-process-time", | ||
QUEUE_OPERATION_TIME: metricsTitle + "_queue-operation-time", | ||
HANDLER_OPERATION_TIME: metricsTitle + "_sync-handler-operation-time", | ||
SYNC_SCHEDULER_CHECK_TIME: metricsTitle + "_sync-scheduler-check-time", | ||
SYNC_REQUEST_TOTAL_PROCESS_TIME: metricsTitle + "_sync-request-total-process-time", | ||
PENDING_CHANGE_PROCESS_TIME: metricsTitle + "_pending-change-process-time", | ||
SYNC_API_PROCESS_TIME: metricsTitle + "_sync-api-process-time", | ||
MONGODB_OPERATION_TIME: metricsTitle + "_mongodb-operation-time", | ||
WORKER_QUEUE_SIZE: metricsTitle + "_worker-queue-size" | ||
}; | ||
@@ -29,3 +30,2 @@ | ||
var statsNamespace = 'fhsyncstats'; | ||
var metricsTitle = (process.env.FH_TITLE || 'fhsync') + '_stats'; | ||
@@ -54,4 +54,3 @@ var redisClient; | ||
var timing = timer.stop(); | ||
var prefixedMetricKey = [metricsTitle, '_', metricKey].join(''); | ||
metricsClient.gauge(prefixedMetricKey, {success: !arguments[0], fn: targetFn.name}, timing); | ||
metricsClient.gauge(metricKey, {success: !arguments[0], fn: targetFn.name}, timing); | ||
return callback.apply(null, arguments); | ||
@@ -58,0 +57,0 @@ }); |
{ | ||
"name": "fh-sync", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "FeedHenry Data Synchronization Server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# fh-sync | ||
Node.js implementation of the FeedHenry Data Syncronisation Server. | ||
To be used in conjunction with the FeedHenry Data Syncronisation Client. | ||
To be used in conjunction with the [FeedHenry Data Syncronisation Client](https://github.com/feedhenry/fh-sync-js). | ||
@@ -18,2 +18,7 @@ ## Dependencies | ||
## Running on Openshift | ||
The simplest way to run sync server on Openshift is to use [Feedhenry Sync Server](https://github.com/feedhenry/fh-sync-server). It includes Openshift template that sets up Redis and Mongo, and creates the running sync server instance. It is also possible to use the repository for running sync server locally. | ||
## Example Server | ||
@@ -81,1 +86,7 @@ | ||
Then to run the tests use ```npm test``` | ||
## Cordova client template | ||
The [Feedhenry Cordova Sync Template](https://github.com/feedhenry-templates/feedhenry-cordova-sync-app) can be used to create client application talking to the sync server. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91
226914
47
5258