1 * Print timestamp when logging to STDOUT (t0m)
3 * Sort by free space and weight fewer devices to avoid CPU churn
6 * Fix deadlock-related crash bugs in db queue fetch routines.
8 * Fix dependencies in MogileFS::Server (t0m)
10 * Fix bug in list_keys command that prevented searches with a
11 '0' prefix. (Ask Bjørn Hansen)
13 2009-12-05: Release version 2.34
15 * Fix bug in new copycount reduction code. If it was more than off by
16 one it wouldn't reduce the count properly.
18 * Improve accept loop. A reasonably busy tracker could start dropping
19 new client connections too easily.
21 2009-11-24: Release version 2.33
23 * 'mogadm fsck status' will now be more accurate.
25 * Support non-GNU df (paul armstrong)
27 * Remove old !replication command. It's in `mogadm stats` and tends
28 to kill the parent process.
30 * Force refreshing internal monitoring status every 5 minutes. Help
31 work around a potential bug where state changes are missed.
33 * Use new delete queue for tempfile culling
35 * Calculate free space from available space, not total space
38 * FSCK code has new tunables to control how aggressive it runs:
39 queue_size_for_fsck (how many fids to keep in file_to_queue table)
40 queue_rate_for_fsck (how many fids to put into the table per second)
41 the generic internal queue is now tunable:
42 internal_queue_limit (how many fids to pull out of a queue table at
43 once. old default was 500).
44 All are tunable by 'mogadm settings set'
47 * Replication will now attempt to handle over replication situations.
48 FSCK will catch over replication as a policy violation, and
49 replicate will attempt to fix it. (dormando)
50 (rarely it might need multiple fscks)
52 * Since FIDSizes is no longer used, remove it and remove gearman
53 dependency. (dormando)
55 * FSCK no longer rabidly fills the queue table. (dormando)
57 * Make storage code resilient to rare deadlocks (dormando)
59 * Add 'max_handles' config option to restart a DB connection if there
60 are too many handles to it (victori).
62 2009-10-18: Release version 2.32
64 * No changes... MFS is hard to release due to mogdeps :/
66 2009-10-18: Release version 2.31
68 * Fix create_close race condition. (pipegeek)
70 * Fix bug in reporting of available disk space.
72 * Many minor bug/documentation fixes.
74 * MySQL and Postgres installs now use BIGINT's for fid/length by
75 default. (dormando, robbat2)
77 * Accept 405 responses to MKCOL from the WebDAV server since it often
78 just means that the directory already exists. (Ask Bjørn Hansen)
80 * Fix showing domain and class in mogadm output when there's only the
81 default class in the domain (Mark Imbriaco)
83 * mogstored: pidfile support
85 * New FSCK work and error for BCNT for bad devcount values (they would
86 not otherwise be caught unless the triggered another fix).
88 2009-01-12: Release version 2.30
90 * fsck will now fix broken 'devcount' cols.
92 * schema version bump to 12, and new delete worker code to use the new
93 queue system. delete should be faster and more scalable.
95 * add server setting queue_rate_for_fsck to allow rate limiting how
96 fast the new distributed fsck creates jobs. the original default of
97 10k could utterly defeat wimpy databases.
99 * Support 0 byte files.
101 * Fix a bug where rebalance would accidentally delete copies of a fid.
103 * Create new internal queue management system, with new job
104 'JobMaster'. This greatly reduces database load and increases
105 throughput for workers using the new system.
107 * Add 'no_unreachable_tracking' config. Disables more of the old
108 replication code. Use this if you have no 1.x trackers.
110 * Add hook for alternate replication sources. Obscure, but can be
113 * Add replicate_order_final_choices hook, so multidc replication may
114 pull from the local network if one copy already exists.
116 * Fix subtle bugs in process management.
118 * Allow overriding of default classes.
120 2008-08-18: Release version 2.20
122 * One more time, and hopefully never again. No changes. META.yml
125 2008-08-18: Release version 2.19
127 * No changes except for META.yml fixes.
128 _should_ be able to upload releases without owning half of CPAN.
130 2008-08-16: Release version 2.18
132 * Add repl_use_get_port option (Brian Lynch)
134 * Remove tempfile data and rows on create_close (Chaos Wang)
136 * Don't delete files accidentally during tempfile table cleanup
138 * Specify username to run the mogstored daemon (Jonathan Share)
140 * Many spelling errors corrected.
142 * PostGres locking routines did not include the hostname for the lock
145 * RFC 2518 says we "should" use a trailing slash when calling
146 MKCOL. Some servers (nginx) appears to require it. (Spotted by
149 * Add server option 'rebalance_ignore_missing' in mogilefsd config
150 that allows the rebalance to ignore files that are already missing
151 when it tries to delete them.
153 * Fix MultipleHosts replication policy to no longer return desperate
154 devices after no longer being desperate, instead returning a state
155 which will queue for retries in the future till it can be truly
156 happy. This prevents files from being replicated to all writable
157 devs when there are two few writable hosts to satisfy the policy.
159 * Add --chmod-mountpoints option to mogautomount, in an attempt to
160 prevent mogstored machines from accidentally writing to their under-
163 * New optional argument 'startpos' to fsck_reset.
165 * Use correct per-Store port, defaulting to UNIX sockets on localhost.
167 * add --dbport option to mogdbsetup (Ask Bjoern Hansen)
169 * Fix state_change() bug that could make file_to_delete_later
170 grow unnecessarily (Radu Greab)
172 * Add Mogstored::HTTPServer::None to allow using mogstored
173 with unmanaged backend DAV servers.
175 * Add experimental cmd_edit_file. Client requires DAV MOVE and
176 partial PUT on the store to use it.
178 * make mogstored and mogilefsd use the now-bundled dependency
179 Perl modules as a last resort, unless MOGILE_NO_BUILTIN_DEPS
180 environment variable is true. this makes it easier for people
181 to use mogilefs, without dependency hell. distros/packagers
182 are expected to ignore (or scoff at) this "feature". but
183 easier for people working from tarball/svn releases. bundled
184 dependencies will be updated over time, as needed.
186 * Bring the SQLite store up to date
188 * Increase the timeouts in the test suite
190 * In the test suite, also search for mogadm in /usr/local/bin/ and
191 /usr/local/sbin (spotted by Dean Wilson)
193 * SCHEMA VERSION 10: 'replpolicy' column on 'class' table.
194 it's safe to --ignore-schema-version and run this mogilefsd
195 against an older schema. new column enables per-class
196 pluggable replication policies. it was always
197 abstract, but not easy to plugin your own alternatives.
198 see doc/pluggable-replication-policies.txt
200 * add start of a MogileFS::ReplicationPolicy::Union implementation
202 * fix crash in queryworker's create_open command, when a device
203 has its directory made on a mogile storage node (the host of
204 which is being monitored by the 'monitor' process), but the
205 device isn't registered in the devices table yet.
207 2007-07-03: Release version 2.17
209 * get_paths command now takes a pathcount option, defaulting to
210 2, instead of having a hardcoded constant of 2. This allows
211 requesting more than 2 paths to a file.
213 * make fsck log over-replicated files as policy violations. it
214 won't delete over-replicated files, though, just log
216 * Document how to test MogileFS under doc/testing.txt. You really
217 should read this if you want to use MogileFS to store your data.
219 * Add a safety check to ensure that Postgresql-8.2 or newer is used.
221 * Update mogdbsetup usage, and ensure it chooses the correct admin
222 username automatically.
224 * Document the --type option to mogdbsetup.
226 * Introduce the PostGres Store implementation. The locking system might
227 still have issues, beware of stale locks! Initial prototype by Radu
228 Greab <rg@yx.ro>, and developed heavily by Robin H. Johnson
229 <robbat2@gentoo.org>.
231 * start of support to make mogstored wrap Apache + web_dav
233 * Remove duplicated [fsck] in log output of Fsck worker.
235 * Handle HiRes gettimeofday correctly to get useful results. Arrays are
236 important. This gives us correct timing output.
238 * Handle input to log() correctly. Based on the implementation of
239 Sys::Syslog::syslog(), produces no ugly warnings, and makes sure that
240 printf stuff works nicely.
242 * The unix_timestamp function belongs to the Store, not other classes.
243 Need to add test cases for process_deletes and stats.
245 * Using NULL during an INSERT for the AUTO_INCREMENT column does not
246 work very well outside of MySQL. Pass the correct number of arguments
247 to the INSERT instead.
249 * Clean up all raw usages of UNIX_TIMESTAMP() function, in preparation
250 for database independence. If you need the unix timestamp, include the output
251 of $self->unix_timestamp directly into your query.
253 * Alter $0 so that the scripts show up as '$SCRIPTNAME' in the process
254 listing instead of '/usr/bin/perl $SCRIPTNAME'. This makes init.d
255 scripts easier to manage.
257 * make mogstored's lighttpd config use mod_status for "/", so
258 mogadm doesn't think it's dead when it previously saw a 404
259 (Justin Huff <jjhuff@mspin.net>)
261 * remove Linux::AIO support, now that Perlbal has removed it as well,
262 and because Linux::AIO support (when Perlbal then chooses
263 IO::AIO) was hanging mogstored on shutdown. so also add a
264 mogstored shutdown test (after a full daemonization of it)
266 * make Mgd::validate_dbh() re-check/ping slave dbhs as well.
267 (problem mentioned by Steven Shou <steven.shou@verizon.net>)
269 * support drive identifiers above sdz (Arjan <info@bouncetek.com>)
271 * make mogstored's iostat child process properly shutdown,
272 even when iostat binary isn't installed. (previously
273 it was stuck in a loop every 10 seconds, hoping for
274 iostat to be installed, but never respecting parent
277 * Change delete worker to use new DeviceStates interface.
279 * Fix get_paths to honor new device state of 'drain' via new
280 DeviceStates interface.
282 * use significantly less CPU when re-broadcasting around
283 iostat device utilization% to child processes. (future:
284 don't rebroadcast at all and use shared memory)
286 * slightly faster fsck (do less syscalls)
288 * efficiency: don't broadcast dup state information to children
289 (track in parent what children know already)
291 * if using Gearman::Server >= 1.09, respawn the fidsizes
294 2007-05-09: Release version 2.16
296 * BUG FIX from 2.15: partially written but never closed
297 tempfiles weren't being cleaned up properly.
299 * start to work better when compiled as a stand-alone
300 PAR all-in-one script/archive
302 2007-05-07: Release version 2.15 ("fsck/drain/rebalance")
304 * minor bug fixes and enhancements for MultipleHosts replication
305 policy. bunch of corner cases now checked with new tests.
306 now easy to write more replication policy tests in future.
308 * replication policies can now return "desperate" requests,
309 signalling that a replication reassessment should be
310 enqueued for the future, to see if things could be improved.
311 (that part's not currently implemented, but the real feature
312 and motivation is that the rebalancer now won't delete a
313 DevFID if it results in a desperate move, only an ideal move. )
315 * replication policies now can optionally return a new return
316 value of the (new) type MogileFS::ReplicationRequest, which
317 has pretty accessor names, can suggest multiple places,
318 can indicate non-ideal emergency replication decisions.
319 old plugins' return values will be transparently upgraded
320 to the equivalent new return value objects.
322 * adding new device state: "drain". it's a hybrid of "dead"
323 (in that files are migrated off it) and "readonly", it that
324 it still serves traffic... it just doesn't get new files.
325 this also introduces the new object-oriented DeviceState class,
326 and device_state($name) utility function to get the DeviceState
329 * internal code cleanup. notably, kill the old & nasty legacy
330 'find_deviceid' function which was ridiculously long and hairy.
331 the two callers are now more readable with sorts/greps/etc.
333 * make mogstored's devN/usage writing process (DiskUsage) be less
334 racy with the mogilefsd monitoring code... don't open file for
335 write... open read/write, then in one write system call, write
336 the entire file, with newline padding at end to cover old data,
337 then truncate it if necessary. should remove harmless (but scary)
338 error messages previously reported by the mogilefsd monitor
339 about zero-length usage files.
341 * new protocol commands to list/set (certain) server settings,
342 with value sanity checking (see MogileFS::Config for which
343 are settable, and with what values). needed for "enable_rebalance".
344 was partially enabled before for slave settings. also needed
345 for memcached support before, which was never possible to
346 set with mogadm, only with db tweaking.
348 * make mogilefsd fsck use new mogstored fid_sizes command, to
349 do bulk stats. speeds up fscks a ton.
351 * be robust against system clocks that go backwards between
353 http://lists.danga.com/pipermail/mogilefs/2007-April/000897.html
355 * Put gearman server in mogstored process, add worker
356 'mogstored-fidsizes' which runs as subprocess of mogstored. Add
357 side-channel command 'fid_sizes' which allows us to quickly enumerate
358 and get sizes for files across entire devices on a storage node.
360 * remove all code like $state eq "readonly", $state=~ /^dead|down$/
361 and instead convert it into specific questions on policy/traits
362 of given state, like $dev->should_put_new_files_on, or
363 $dev->should_drain_files_off. see MogileFS::DeviceState,
364 objects of which are accessed via $dev->dstate, or new
365 MogileFS::Util device_state($name) wrapper.
367 * start of rebalance support. (where replication workers, in their
368 idle time, can rearrange files to even out disk space and/or IO
369 activity on storage nodes... policy isn't hard-coded, and is
370 in fact currently random)
372 * lighttpd support in both mogilefsd and mogstored. passes test
373 suite with environment MOGSTORED_SERVER_TYPE=lighttpd set now.
375 * abstract out the HTTP server support in mogstored, so
376 mogstored isn't just a perlbal wrapper, but an anything
377 wrapper. (in particular, lighttpd and apache) mogstored still
378 exists for all its other misc admin/monitoring functions,
379 but can then manage/configure apache/lighttpd child process(es).
380 so far they're just stubbed out.
382 * split mogstored into separate files per class, rather than one
385 2007-04-24: Release version 2.10
387 * bug from earlier refactoring: changing some 'next' to 'return'
388 in MogileFS::Device's create_directory method. (thanks to
389 Justin Huff <jjhuff@mspin.net>)
391 * make sure mogdbsetup doesn't upgrade an existing table (with
392 potentially lot of data) from MyISAM to InnoDB. just warn.
393 only new tables should become InnoDB on creation. also,
394 detect InnoDB even on old MySQL 4.0.x, not just 4.1/5.0.
396 * make fsck faster by reducing number of db queries (both
397 reads and writes), though more unrelated fastness remains to
400 * make fsck_status faster (keep summary stats of evcode counts,
401 rather than doing a full GROUP BY query all the time)
403 2007-04-20: Release version 2.09
405 * filesystem checker (Fsck worker). off by default, unless
406 it's enabled via protocol. Control/monitor it with mogadm
407 in MogileFS-Utils 2.08, which needs MogileFS::Client 1.06.
409 * replication speed-up on configurations with only 1 host.
410 (replication would randomly have no suggestions before, when
411 there was only 1 target host, so replication would be rescheduled
412 until the future, when random returned a different device on
415 2007-04-17: Release version 2.08
417 * (no runtime-visible changes from 2.07)
419 * mogilefsd: remove incomplete "Checker" worker, replace with
420 incomplete "Fsck" worker.
422 * test cleanup/robustness improvements. properly skips testing when
423 testing deps not found. but searches harder for them now, too.
424 tests run under "make disttest".
426 * packaging cleanups, released using ShipIt.
431 * mogilefsd: Split Plugin::MetaData and Plugin::FilePaths into their own distributions.
433 * mogilefsd: Fix mogdbsetup to not ask empty questions.
435 * mogilefsd: command line/config file support for listening on specific IPs, also
436 support for listening on multiple IPs/ports
439 * mogstored: use XS HTTPHeaders by default, unless disabled with environment variable
441 * mogilefsd: memcache support for get_paths (see doc/memcache-support.txt)
444 * mogstored: make child processes be exec'ed (as as their own scripts, not inheriting
445 Perlbal, Linux::AIO/IO::AIO, etc baggage). so they don't own listening
446 sockets, pipes to child workers, signal handlers, etc. just a lot
447 cleaner now, and SIGTERM, SIGINT properly shut everything down now,
448 both in foreground and as daemon
451 * mogstored: this changelog is totally neglected. :/ see svn log.
453 * mogstored: make perlbal's "shutdown graceful" work, by not doing
454 sidechannel accepting ourselves (which never hung up),
455 but subclass Perlbal's TCPListener class, which does it
458 2006-12/2007-01: (2.00_05)
459 * mogilefsd: everything converted to OO API internally. old internal APIs removed.
461 * mogilefsd: be database-agnostic. Currently only works with MySQL (and
462 SQLite as a joke/demo), but Pg/Oracle coming in the future.
464 * mogilefsd: built-in I/O activity monitoring between mogstored/mogilefsd Monitor
467 * mogilefsd: much improved internal communication between worker processes
469 * mogilefsd: start of better docs
472 * mogilefsd: pidfile support (Radu Greab <radu@yx.ro>)
476 * mogilefsd: remove all old internal APIs, update everything to use new OO APIs,
477 expanding OO APIs where necessary (lots of places). so much more
478 beautifully hackable now.
480 * mogstored: kill child processes (diskusage and iostat) when being killed.
483 * mogstored: set aio threads after daemonizing. needed by Linux::AIO/IO::AIO, it seems?
486 * mogilefsd: remove non-HTTP mode ("NFS mode") from the server
489 * mogstored: refuse to start up with missing Linux::AIO/IO::AIO or broken Linux::AIO
492 * mogstored: set aio_threads as a function of number of disks
495 * mogilefsd: major refactoring/cleanup/new features ("MogileFS 2.0")
498 * mogilefsd: fix dataloss bug when the 'tempfile' table is InnoDB and the
499 server is restarted while the tempfile table is empty.
502 * mogilefsd: allow create_open to take optional fid parameter which enables you to
503 dictate which fid to use internally and to not rely on MySQL's auto_increment
506 * mogilefsd: make Mgd::get_device_summary() always return all devices, regardless
509 * mogilefsd: update all callers of get_device_summary to filter on the device
510 status, if they need to. (provided more clarity into what
511 callers' intentions were...)
513 * mogilefsd: add a new device state 'readonly' which means: it can be read from
514 from clients, it can be replicated from, but no new files can go
515 on it or be replicated onto it. and it also reaps, meaning the
516 device is fucked. the filesystem probably ate itself.
519 * mogstored: write out usage files for devices, even if they're not on their own mount point.
520 also explicitly include the '-k' flag to df, so we know they're KiB.
523 * mogstored: new config syntax and command line options