Skip to content

Commit

Permalink
Added the separate snetd configs for ropsten and kovan
Browse files Browse the repository at this point in the history
  • Loading branch information
Habush committed Feb 11, 2019
1 parent ed55869 commit f537323
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 22 deletions.
15 changes: 13 additions & 2 deletions circus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ stderr_stream.class = StdoutStream
copy_env = true
priority = 2

[watcher:snetd]
[watcher:snetd-kovan]
cmd = ./snetd
args = --config snetd.config.json
args = --config ./snetd_configs/snetd.kovan.json
warmup_delay = 0
numprocesses = 1
working_dir = $(circus.env.working_dir)
Expand All @@ -51,6 +51,17 @@ copy_env = true
autostart = true
priority = 4

[watcher:snetd-ropsten]
cmd = ./snetd
args = --config ./snetd_configs/snetd.ropsten.json
warmup_delay = 0
numprocesses = 1
working_dir = $(circus.env.working_dir)
stdout_stream.class = StdoutStream
stderr_stream.class = StdoutStream
copy_env = true
autostart = true
priority = 4

[env]
wdir = /home/root/mozi_snet_service
Expand Down
7 changes: 6 additions & 1 deletion service_metadata.json → service_metadata.kovan.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@
"group_name": "default_group",
"endpoint": "46.4.115.181:5002"
}
]
],

"service_description": {
"url": "https://mozi-ai.github.io/moses-service/",
"description": "The service uses the OpenCog meta optimising semantic evolutionary search algorithm MOSES to generate a supervised binary classification model of genomic or other high dimensional binary feature data sets using boolean regression"
}
}
30 changes: 30 additions & 0 deletions service_metadata.ropsten.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 1,
"display_name": "moses-service",
"encoding": "proto",
"service_type": "grpc",
"payment_expiration_threshold": 40320,
"model_ipfs_hash": "QmXMfafMdLuF8yZvQc8BRz1LJ7FWGCAXDMgpWbTUhMdbvT",
"mpe_address": "0x7E6366Fbe3bdfCE3C906667911FC5237Cc96BD08",
"pricing": {
"price_model": "fixed_price",
"price_in_cogs": 1
},
"groups": [
{
"group_name": "default_group",
"group_id": "+VN4NR3ie5Zj1e+ZVsz/wms33+UxUa6w520iv+Dbrfk=",
"payment_address": "0xaceB1EaCA36061ff29Ddb7c963142abbFf23e508"
}
],
"endpoints": [
{
"group_name": "default_group",
"endpoint": "46.4.115.181:5005"
}
],
"service_description": {
"url": "https://mozi-ai.github.io/moses-service/",
"description": "The service uses the OpenCog meta optimising semantic evolutionary search algorithm MOSES to generate a supervised binary classification model of genomic or other high dimensional binary feature data sets using boolean regression"
}
}
19 changes: 0 additions & 19 deletions snetd.config.json

This file was deleted.

38 changes: 38 additions & 0 deletions snetd_configs/snet.ropsten.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"daemon_end_point": "0.0.0.0:5005",
"ethereum_json_rpc_endpoint": "https://ropsten.infura.io",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"registry_address_key": "0x5156fde2ca71da4398f8c76763c41bc9633875e4",
"passthrough_enabled": true,
"passthrough_endpoint": "http://localhost:5003",
"organization_id": "snet",
"service_id": "moses-service",

"payment_channel_storage_server": {
"id": "storage-ropsten",
"host": "127.0.0.1",
"client_port": 2381,
"peer_port": 2382,
"token": "unique-token",
"cluster": "storage-ropsten=http://127.0.0.1:2382",
"data_dir": "etcd/storage-data-dir-ropsten.etcd",
"enabled": true
},

"payment_channel_storage_client": {
"connection_timeout": "5s",
"request_timeout": "3s",
"endpoints": ["http://127.0.0.1:2381"]
},

"log": {
"level": "debug",
"output": {
"current_link": "./snetd-ropsten.log",
"file_pattern": "./snetd-ropsten.%Y%m%d.log",
"rotation_count": 0,
"rotation_time_in_sec": 86400,
"type": "file"
}
}
}
38 changes: 38 additions & 0 deletions snetd_configs/snetd.kovan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"daemon_end_point": "0.0.0.0:5002",
"ethereum_json_rpc_endpoint": "https://kovan.infura.io",
"ipfs_end_point": "http://ipfs.singularitynet.io:80",
"registry_address_key": "0xe331bf20044a5b24c1a744abc90c1fd711d2c08d",
"passthrough_enabled": true,
"passthrough_endpoint": "http://localhost:5003",
"organization_id": "snet",
"service_id": "moses-service",

"payment_channel_storage_server": {
"id": "storage-kovan",
"host": "127.0.0.1",
"client_port": 2379,
"peer_port": 2380,
"token": "unique-token",
"cluster": "storage-kovan=http://127.0.0.1:2380",
"data_dir": "etcd/storage-data-dir-kovan.etcd",
"enabled": true
},

"payment_channel_storage_client": {
"connection_timeout": "5s",
"request_timeout": "3s",
"endpoints": ["http://127.0.0.1:2379"]
},

"log": {
"level": "debug",
"output": {
"current_link": "./snetd-kovan.log",
"file_pattern": "./snetd-kovan.%Y%m%d.log",
"rotation_count": 0,
"rotation_time_in_sec": 86400,
"type": "file"
}
}
}

0 comments on commit f537323

Please sign in to comment.