single node mode

This commit is contained in:
Cloud Wu
2014-05-22 22:44:20 +08:00
parent 88700c2c90
commit 37ea7a025c
8 changed files with 318 additions and 22 deletions

View File

@@ -3,6 +3,7 @@ local cluster = require "cluster"
skynet.start(function()
skynet.newservice("simpledb")
skynet.call("SIMPLEDB", "lua", "SET", "a", "foobar")
print(skynet.call("SIMPLEDB", "lua", "SET", "a", "foobar"))
print(skynet.call("SIMPLEDB", "lua", "GET", "a"))
cluster.open(2528)
end)

View File

@@ -1,11 +1,8 @@
thread = 8
logger = nil
harbor = 1
address = "127.0.0.1:2526"
master = "127.0.0.1:2013"
harbor = 0
start = "cluster1"
bootstrap = "snlua bootstrap" -- The service for bootstrap
standalone = "0.0.0.0:2013"
luaservice = "./service/?.lua;./test/?.lua;./examples/?.lua"
lualoader = "lualib/loader.lua"
cpath = "./cservice/?.so"

View File

@@ -1,11 +1,8 @@
thread = 8
logger = nil
harbor = 1
address = "127.0.0.1:2527"
master = "127.0.0.1:2014"
harbor = 0
start = "cluster2"
bootstrap = "snlua bootstrap" -- The service for bootstrap
standalone = "0.0.0.0:2014"
luaservice = "./service/?.lua;./test/?.lua;./examples/?.lua"
lualoader = "lualib/loader.lua"
cpath = "./cservice/?.so"