Greg Farnum
6c63428980
msgr: rank is just a bad name for local SimpleMessengers now
2010-01-07 16:53:51 -08:00
Greg Farnum
b914135158
msgr: should be destroyed in the same thread it's created
2010-01-07 15:35:26 -08:00
Greg Farnum
5f54543f29
msgr: Remove erroneous rank->destroy calls I inserted in 9a96bf
2010-01-07 12:05:38 -08:00
Greg Farnum
6737529631
msgr: Make usage compatible with last commit
2010-01-06 17:18:49 -08:00
Greg Farnum
9a96bf6a85
msgr: All SimpleMessenger uses are now on the heap for appropriate destruction
2010-01-06 17:18:48 -08:00
Sage Weil
805b6cbed0
Merge branch 'unstable' into auth
...
Conflicts:
src/Makefile.am
src/ceph.cc
src/include/ceph_fs.h
src/kernel/super.c
src/kernel/super.h
src/librados.cc
src/mon/MonClient.cc
src/mon/MonClient.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/mon_types.h
src/msg/Dispatcher.h
src/msg/Message.h
src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.h
src/osd/OSD.h
2009-10-21 16:13:48 -07:00
Sage Weil
329f5c6490
msgr: simplify policy
...
We may be a server, and we may be lossy. This gives us a few policies:
!server, !lossy = lossless_peer(), for bidirectional intracluster fun.
server, !lossy = lossless_server(), e.g. mds <-> client.
server, lossy = lossy_server(), e.g. mon and osd
also, the default is
!server, !lossy = client(), but that doesn't mean much. The server
decides if the connection is lossy or not. And !server just means we can
initiate the outgoing connection.
2009-10-13 10:27:06 -07:00
Sage Weil
97b76ff0a0
mon: store latest monmap is paxos-compatible format
...
Previously it was monmap/latest, but wasn't prefixed/wrapped with the
version_t.
2009-10-10 21:26:53 -07:00
Yehuda Sadeh
746da2067e
Merge commit 'origin/unstable' into auth
...
Conflicts:
src/kernel/Makefile
src/kernel/buffer.h
src/kernel/super.c
2009-10-05 10:57:01 -07:00
Sage Weil
dd732cbfc1
use sockaddr_storage; and some ipv6 support groundwork
2009-10-02 13:39:17 -07:00
Yehuda Sadeh
0bdf90da2b
auth: common_init should not always init keys
2009-09-25 16:19:38 -07:00
Sage Weil
71b2ee0f2c
strerror -> strerror_r
2009-09-18 16:17:04 -07:00
Sage Weil
e8a2690775
mon: treat osd, mds as peers, not clients (i.e. connect to them)
2009-08-28 14:24:19 -07:00
Sage Weil
0cfc905e15
msgr: server flag to avoid connecting to peer
...
If we have a message and no socket and server=true, just queue it
up. When they connect to us they'll get it.
2009-08-26 13:09:09 -07:00
Sage Weil
be072bef3e
msgr: kill static instance 'rank' of SimpleMessenger
2009-05-01 07:12:18 -07:00
Yehuda Sadeh
facfff17fb
cmon: less verbose
2009-03-30 11:16:30 -07:00
Yehuda Sadeh
32a34ff27d
conf: compare mon addr in monmap and in conf, warn
2009-03-24 16:45:01 -07:00
Sage Weil
41766cd0b4
config: clean up common_init a bit
2009-03-20 14:19:28 -07:00
Sage Weil
e10a2b1739
cmon, cosd: show fsid on startup
2009-03-12 14:20:05 -07:00
Yehuda Sadeh
7d66049608
cmon: typo
2009-03-12 09:33:16 -07:00
Sage Weil
11ee8ab6b1
config: fix mds, mon, osd startup
2009-03-11 15:27:58 -07:00
Yehuda Sadeh
29b65edc50
conf: restructure of the conf mechanism
2009-03-11 14:41:44 -07:00
Sage Weil
9b7c9b0735
usage
2009-03-10 15:22:52 -07:00
Sage Weil
91ce18168c
config: default to -d for server daemons; -D/--nodaemon for foreground operation
2009-03-10 14:43:07 -07:00
Yehuda Sadeh
f34dafd4e7
ceph-daemons: some more fixes
2009-02-27 17:11:10 -08:00
Yehuda Sadeh
c511d68dea
added a common initialization function
2009-02-09 15:46:02 -08:00
Sage Weil
b95422d1c1
mon: include magic in mondata
2008-11-20 16:59:08 -08:00
Sage Weil
b513f2e55e
mon: standardize storage of monmap revisions
2008-11-13 14:30:35 -08:00
Sage Weil
5df7fb87ce
fix env parsing
2008-11-05 14:55:07 -08:00
Sage Weil
9499a8e80a
rewrite debug macros, infrastructure
2008-11-05 14:32:37 -08:00
Sage Weil
0639334916
try to chdir on exit to avoid clobbering ./gmon.out
2008-11-04 14:50:21 -08:00
Sage Weil
b1b8f74ac2
mon: lossless communication between monitors
2008-10-29 14:03:05 -07:00
Sage Weil
c4d2160635
msgr: track lossy mode independently for self, peer
...
The policy will be asymmetrical for the OSDs, so we need to
track it independently.
The various assertions aren't all worked out yet. Notably,
connection races aren't quite right. But the basic bits
are there.
2008-10-13 12:02:27 -07:00
Sage Weil
c3a68d7424
msgr: include priority in msg header, make dispatch a priority queue
...
Generalizes previous hack that put messages from the monitor at the front of the
dispatch queue. Monitor now just sets a (non-default) default_send_priority
of CEPH_MSG_PRIO_HIGH. That value is used only if the message priority isn't
set explicitly by set_priority() before being queued for send.
2008-10-08 10:49:12 -07:00
Sage Weil
d350bad7eb
mon: lock monitorstore
2008-05-19 15:06:19 -07:00
Sage Weil
609668346f
cmon: set msgr policies
2008-04-09 11:14:43 -07:00
Sage Weil
02e887312b
revamped mkfs procedures, mon startup, and more
2008-03-10 16:23:41 -07:00
Sage Weil
23b9d559d9
monclient: simplify interface, used by csyn cmds cosd
2008-03-09 22:32:38 -07:00
Sage Weil
15545438d7
some startup cleanup
2008-01-31 14:52:36 -08:00
Sage Weil
b2badc849f
startup: adjust out/* symlinks after forking (from call to daemon())
2008-01-26 18:33:18 -08:00
Sage Weil
a8d7999b8d
-d to daemonize, other startup cleanup
2008-01-26 09:33:13 -08:00
Sage Weil
fda82195db
quieter startup
2008-01-25 12:10:45 -08:00
Sage Weil
1e4215e942
write output to default/* by default
2008-01-25 12:04:31 -08:00
Sage Weil
f1d2f0d6d1
cleaned up char* vs const char*
2008-01-01 14:04:31 -08:00
Sage Weil
c1865445c5
reorganized source tree
2007-12-19 13:28:33 -08:00