1 2011-01-08: Release version 2.45
3 * file_debug command (dormando <dormando@rydia.net>)
5 * add "file_info" command for fetching metadata. (dormando <dormando@rydia.net>)
7 * don't allow clients to upload to the wrong dev (dormando <dormando@rydia.net>)
9 * validate database handles in the right places (dormando <dormando@rydia.net>)
11 * only dbh->ping if not used in over a minute (dormando <dormando@rydia.net>)
13 * make list_fids work with gaps (dormando <dormando@rydia.net>)
15 * Postgres enqueue_fids_* cleanup (Robin H. Johnson <robbat2@gentoo.org>)
17 * Fixes MogileFS::Store::retry_on_deadlock to honor non-deadlock exceptions (Jason Mills <jmmills@cpan.org>)
19 * Implements tests for MogileFS::Store::retry_on_deadlock (Jason Mills <jmmills@cpan.org>)
21 * Implements tests for MogileFS::Store::ignore_replace (Jason Mills <jmmills@cpan.org>)
23 * job_master was never revalidating its dbh handle. (dormando <dormando@rydia.net>)
25 * add a couple useful stats (dormando <dormando@rydia.net>)
27 * Correct iostat command on darwin (Tomas Doran <bobtfish@bobtfish.net>)
29 * Fix test db creation with SQLite (Tomas Doran <bobtfish@bobtfish.net>)
31 * Fix SQLite so tracker at least starts (Tomas Doran <bobtfish@bobtfish.net>)
33 * additional debian packaging fixes (kad <kad@blegh.net>)
35 * debian packaging updates. (Andre Bohr <andrepascha@googlemail.com>)
37 * Documentation updates. (Pyry Hakulinen <pyh@iki.fi>)
39 * HTTPFile returns -1 if the file is missing from the device. Content-Length: 0 is valid and it should return BLEN not MISS. (Pyry Hakulinen <pyh@iki.fi>)
41 * some further editing of the info file. (dormando <dormando@rydia.net>)
43 * Changed repository metadata (Tomas Doran <bobtfish@bobtfish.net>)
45 2010-11-25: Release version 2.44
47 * Fix issue with rebalance not filtering source devs from the
50 * Make global rebalance limits work (Martijn Lina)
52 2010-10-10: Release version 2.43
54 * Make over-replication fixable again. (sigh)
56 * Fix old bug in MultipleHosts() which would not let you drop from
59 2010-10-08: Release version 2.42
61 * Make FSCK run again (Andre Pascha)
63 * Fix Postgres schema upgrade issue (hopefully)
65 2010-10-06: Release version 2.41
67 * One line change that to fix uprading to 2.40
69 2010-09-28: Release version 2.40
71 * Optimize worker sleep patterns and worker/parent communications.
73 * New rebalance/drain code. See the docs/wiki for how to use.
74 ***NOTE*** Old drain/rebalance code is disabled. Setting a device
75 into drain mode no longer does what you think it would.
76 http://code.google.com/p/mogilefs/wiki/Rebalance
78 2010-08-13: Release version 2.37
80 * Make HTTP DELETE's work reliably
82 * Fix obscure crashes related to "unknown devices"
84 * make it slightly harder to crash trackers with bad slave DB settings
87 * make tracker -> storage node connection timeout configurable.
88 was hardcoded to 2 seconds. (Tomas Doran)
90 * update_class command (Tomas Doran)
92 2010-04-16: Release version 2.36
94 * Bump required version of perlbal for mogstored.
96 * Critical bug fix for creating files.
97 If you have many dead devices, poor filter ordering could cause
98 MogileFS to not consider any alive devices for new files.
100 * Actually default to BIGINT under MySQL...
101 Bug would always initialize new setups to INT.
103 2010-04-02: Release version 2.35
105 * Nuke ancient mogilefs 1.1 replication code.
106 no_unreachable_tracking and old_repl_compat variables are gone.
109 * Support modifying class replpolicy strings (requires new
110 mogadm/MogileFS::Client) (dormando)
112 * Print fidid and devid on errors when fsck fails to fix something
115 * Allow list_keys to work with a prefix of '0' (dormando)
117 * Print timestamp when logging to STDOUT (t0m)
119 * Sort by free space and weight fewer devices to avoid CPU churn
122 * Fix deadlock-related crash bugs in db queue fetch routines.
124 * Fix dependencies in MogileFS::Server (t0m)
126 * Fix bug in list_keys command that prevented searches with a
127 '0' prefix. (Ask Bjørn Hansen)
129 2009-12-05: Release version 2.34
131 * Fix bug in new copycount reduction code. If it was more than off by
132 one it wouldn't reduce the count properly.
134 * Improve accept loop. A reasonably busy tracker could start dropping
135 new client connections too easily.
137 2009-11-24: Release version 2.33
139 * 'mogadm fsck status' will now be more accurate.
141 * Support non-GNU df (paul armstrong)
143 * Remove old !replication command. It's in `mogadm stats` and tends
144 to kill the parent process.
146 * Force refreshing internal monitoring status every 5 minutes. Help
147 work around a potential bug where state changes are missed.
149 * Use new delete queue for tempfile culling
151 * Calculate free space from available space, not total space
154 * FSCK code has new tunables to control how aggressive it runs:
155 queue_size_for_fsck (how many fids to keep in file_to_queue table)
156 queue_rate_for_fsck (how many fids to put into the table per second)
157 the generic internal queue is now tunable:
158 internal_queue_limit (how many fids to pull out of a queue table at
159 once. old default was 500).
160 All are tunable by 'mogadm settings set'
163 * Replication will now attempt to handle over replication situations.
164 FSCK will catch over replication as a policy violation, and
165 replicate will attempt to fix it. (dormando)
166 (rarely it might need multiple fscks)
168 * Since FIDSizes is no longer used, remove it and remove gearman
169 dependency. (dormando)
171 * FSCK no longer rabidly fills the queue table. (dormando)
173 * Make storage code resilient to rare deadlocks (dormando)
175 * Add 'max_handles' config option to restart a DB connection if there
176 are too many handles to it (victori).
178 2009-10-18: Release version 2.32
180 * No changes... MFS is hard to release due to mogdeps :/
182 2009-10-18: Release version 2.31
184 * Fix create_close race condition. (pipegeek)
186 * Fix bug in reporting of available disk space.
188 * Many minor bug/documentation fixes.
190 * MySQL and Postgres installs now use BIGINT's for fid/length by
191 default. (dormando, robbat2)
193 * Accept 405 responses to MKCOL from the WebDAV server since it often
194 just means that the directory already exists. (Ask Bjørn Hansen)
196 * Fix showing domain and class in mogadm output when there's only the
197 default class in the domain (Mark Imbriaco)
199 * mogstored: pidfile support
201 * New FSCK work and error for BCNT for bad devcount values (they would
202 not otherwise be caught unless the triggered another fix).
204 2009-01-12: Release version 2.30
206 * fsck will now fix broken 'devcount' cols.
208 * schema version bump to 12, and new delete worker code to use the new
209 queue system. delete should be faster and more scalable.
211 * add server setting queue_rate_for_fsck to allow rate limiting how
212 fast the new distributed fsck creates jobs. the original default of
213 10k could utterly defeat wimpy databases.
215 * Support 0 byte files.
217 * Fix a bug where rebalance would accidentally delete copies of a fid.
219 * Create new internal queue management system, with new job
220 'JobMaster'. This greatly reduces database load and increases
221 throughput for workers using the new system.
223 * Add 'no_unreachable_tracking' config. Disables more of the old
224 replication code. Use this if you have no 1.x trackers.
226 * Add hook for alternate replication sources. Obscure, but can be
229 * Add replicate_order_final_choices hook, so multidc replication may
230 pull from the local network if one copy already exists.
232 * Fix subtle bugs in process management.
234 * Allow overriding of default classes.
236 2008-08-18: Release version 2.20
238 * One more time, and hopefully never again. No changes. META.yml
241 2008-08-18: Release version 2.19
243 * No changes except for META.yml fixes.
244 _should_ be able to upload releases without owning half of CPAN.
246 2008-08-16: Release version 2.18
248 * Add repl_use_get_port option (Brian Lynch)
250 * Remove tempfile data and rows on create_close (Chaos Wang)
252 * Don't delete files accidentally during tempfile table cleanup
254 * Specify username to run the mogstored daemon (Jonathan Share)
256 * Many spelling errors corrected.
258 * PostGres locking routines did not include the hostname for the lock
261 * RFC 2518 says we "should" use a trailing slash when calling
262 MKCOL. Some servers (nginx) appears to require it. (Spotted by
265 * Add server option 'rebalance_ignore_missing' in mogilefsd config
266 that allows the rebalance to ignore files that are already missing
267 when it tries to delete them.
269 * Fix MultipleHosts replication policy to no longer return desperate
270 devices after no longer being desperate, instead returning a state
271 which will queue for retries in the future till it can be truly
272 happy. This prevents files from being replicated to all writable
273 devs when there are two few writable hosts to satisfy the policy.
275 * Add --chmod-mountpoints option to mogautomount, in an attempt to
276 prevent mogstored machines from accidentally writing to their under-
279 * New optional argument 'startpos' to fsck_reset.
281 * Use correct per-Store port, defaulting to UNIX sockets on localhost.
283 * add --dbport option to mogdbsetup (Ask Bjoern Hansen)
285 * Fix state_change() bug that could make file_to_delete_later
286 grow unnecessarily (Radu Greab)
288 * Add Mogstored::HTTPServer::None to allow using mogstored
289 with unmanaged backend DAV servers.
291 * Add experimental cmd_edit_file. Client requires DAV MOVE and
292 partial PUT on the store to use it.
294 * make mogstored and mogilefsd use the now-bundled dependency
295 Perl modules as a last resort, unless MOGILE_NO_BUILTIN_DEPS
296 environment variable is true. this makes it easier for people
297 to use mogilefs, without dependency hell. distros/packagers
298 are expected to ignore (or scoff at) this "feature". but
299 easier for people working from tarball/svn releases. bundled
300 dependencies will be updated over time, as needed.
302 * Bring the SQLite store up to date
304 * Increase the timeouts in the test suite
306 * In the test suite, also search for mogadm in /usr/local/bin/ and
307 /usr/local/sbin (spotted by Dean Wilson)
309 * SCHEMA VERSION 10: 'replpolicy' column on 'class' table.
310 it's safe to --ignore-schema-version and run this mogilefsd
311 against an older schema. new column enables per-class
312 pluggable replication policies. it was always
313 abstract, but not easy to plugin your own alternatives.
314 see doc/pluggable-replication-policies.txt
316 * add start of a MogileFS::ReplicationPolicy::Union implementation
318 * fix crash in queryworker's create_open command, when a device
319 has its directory made on a mogile storage node (the host of
320 which is being monitored by the 'monitor' process), but the
321 device isn't registered in the devices table yet.
323 2007-07-03: Release version 2.17
325 * get_paths command now takes a pathcount option, defaulting to
326 2, instead of having a hardcoded constant of 2. This allows
327 requesting more than 2 paths to a file.
329 * make fsck log over-replicated files as policy violations. it
330 won't delete over-replicated files, though, just log
332 * Document how to test MogileFS under doc/testing.txt. You really
333 should read this if you want to use MogileFS to store your data.
335 * Add a safety check to ensure that Postgresql-8.2 or newer is used.
337 * Update mogdbsetup usage, and ensure it chooses the correct admin
338 username automatically.
340 * Document the --type option to mogdbsetup.
342 * Introduce the PostGres Store implementation. The locking system might
343 still have issues, beware of stale locks! Initial prototype by Radu
344 Greab <rg@yx.ro>, and developed heavily by Robin H. Johnson
345 <robbat2@gentoo.org>.
347 * start of support to make mogstored wrap Apache + web_dav
349 * Remove duplicated [fsck] in log output of Fsck worker.
351 * Handle HiRes gettimeofday correctly to get useful results. Arrays are
352 important. This gives us correct timing output.
354 * Handle input to log() correctly. Based on the implementation of
355 Sys::Syslog::syslog(), produces no ugly warnings, and makes sure that
356 printf stuff works nicely.
358 * The unix_timestamp function belongs to the Store, not other classes.
359 Need to add test cases for process_deletes and stats.
361 * Using NULL during an INSERT for the AUTO_INCREMENT column does not
362 work very well outside of MySQL. Pass the correct number of arguments
363 to the INSERT instead.
365 * Clean up all raw usages of UNIX_TIMESTAMP() function, in preparation
366 for database independence. If you need the unix timestamp, include the output
367 of $self->unix_timestamp directly into your query.
369 * Alter $0 so that the scripts show up as '$SCRIPTNAME' in the process
370 listing instead of '/usr/bin/perl $SCRIPTNAME'. This makes init.d
371 scripts easier to manage.
373 * make mogstored's lighttpd config use mod_status for "/", so
374 mogadm doesn't think it's dead when it previously saw a 404
375 (Justin Huff <jjhuff@mspin.net>)
377 * remove Linux::AIO support, now that Perlbal has removed it as well,
378 and because Linux::AIO support (when Perlbal then chooses
379 IO::AIO) was hanging mogstored on shutdown. so also add a
380 mogstored shutdown test (after a full daemonization of it)
382 * make Mgd::validate_dbh() re-check/ping slave dbhs as well.
383 (problem mentioned by Steven Shou <steven.shou@verizon.net>)
385 * support drive identifiers above sdz (Arjan <info@bouncetek.com>)
387 * make mogstored's iostat child process properly shutdown,
388 even when iostat binary isn't installed. (previously
389 it was stuck in a loop every 10 seconds, hoping for
390 iostat to be installed, but never respecting parent
393 * Change delete worker to use new DeviceStates interface.
395 * Fix get_paths to honor new device state of 'drain' via new
396 DeviceStates interface.
398 * use significantly less CPU when re-broadcasting around
399 iostat device utilization% to child processes. (future:
400 don't rebroadcast at all and use shared memory)
402 * slightly faster fsck (do less syscalls)
404 * efficiency: don't broadcast dup state information to children
405 (track in parent what children know already)
407 * if using Gearman::Server >= 1.09, respawn the fidsizes
410 2007-05-09: Release version 2.16
412 * BUG FIX from 2.15: partially written but never closed
413 tempfiles weren't being cleaned up properly.
415 * start to work better when compiled as a stand-alone
416 PAR all-in-one script/archive
418 2007-05-07: Release version 2.15 ("fsck/drain/rebalance")
420 * minor bug fixes and enhancements for MultipleHosts replication
421 policy. bunch of corner cases now checked with new tests.
422 now easy to write more replication policy tests in future.
424 * replication policies can now return "desperate" requests,
425 signalling that a replication reassessment should be
426 enqueued for the future, to see if things could be improved.
427 (that part's not currently implemented, but the real feature
428 and motivation is that the rebalancer now won't delete a
429 DevFID if it results in a desperate move, only an ideal move. )
431 * replication policies now can optionally return a new return
432 value of the (new) type MogileFS::ReplicationRequest, which
433 has pretty accessor names, can suggest multiple places,
434 can indicate non-ideal emergency replication decisions.
435 old plugins' return values will be transparently upgraded
436 to the equivalent new return value objects.
438 * adding new device state: "drain". it's a hybrid of "dead"
439 (in that files are migrated off it) and "readonly", it that
440 it still serves traffic... it just doesn't get new files.
441 this also introduces the new object-oriented DeviceState class,
442 and device_state($name) utility function to get the DeviceState
445 * internal code cleanup. notably, kill the old & nasty legacy
446 'find_deviceid' function which was ridiculously long and hairy.
447 the two callers are now more readable with sorts/greps/etc.
449 * make mogstored's devN/usage writing process (DiskUsage) be less
450 racy with the mogilefsd monitoring code... don't open file for
451 write... open read/write, then in one write system call, write
452 the entire file, with newline padding at end to cover old data,
453 then truncate it if necessary. should remove harmless (but scary)
454 error messages previously reported by the mogilefsd monitor
455 about zero-length usage files.
457 * new protocol commands to list/set (certain) server settings,
458 with value sanity checking (see MogileFS::Config for which
459 are settable, and with what values). needed for "enable_rebalance".
460 was partially enabled before for slave settings. also needed
461 for memcached support before, which was never possible to
462 set with mogadm, only with db tweaking.
464 * make mogilefsd fsck use new mogstored fid_sizes command, to
465 do bulk stats. speeds up fscks a ton.
467 * be robust against system clocks that go backwards between
469 http://lists.danga.com/pipermail/mogilefs/2007-April/000897.html
471 * Put gearman server in mogstored process, add worker
472 'mogstored-fidsizes' which runs as subprocess of mogstored. Add
473 side-channel command 'fid_sizes' which allows us to quickly enumerate
474 and get sizes for files across entire devices on a storage node.
476 * remove all code like $state eq "readonly", $state=~ /^dead|down$/
477 and instead convert it into specific questions on policy/traits
478 of given state, like $dev->should_put_new_files_on, or
479 $dev->should_drain_files_off. see MogileFS::DeviceState,
480 objects of which are accessed via $dev->dstate, or new
481 MogileFS::Util device_state($name) wrapper.
483 * start of rebalance support. (where replication workers, in their
484 idle time, can rearrange files to even out disk space and/or IO
485 activity on storage nodes... policy isn't hard-coded, and is
486 in fact currently random)
488 * lighttpd support in both mogilefsd and mogstored. passes test
489 suite with environment MOGSTORED_SERVER_TYPE=lighttpd set now.
491 * abstract out the HTTP server support in mogstored, so
492 mogstored isn't just a perlbal wrapper, but an anything
493 wrapper. (in particular, lighttpd and apache) mogstored still
494 exists for all its other misc admin/monitoring functions,
495 but can then manage/configure apache/lighttpd child process(es).
496 so far they're just stubbed out.
498 * split mogstored into separate files per class, rather than one
501 2007-04-24: Release version 2.10
503 * bug from earlier refactoring: changing some 'next' to 'return'
504 in MogileFS::Device's create_directory method. (thanks to
505 Justin Huff <jjhuff@mspin.net>)
507 * make sure mogdbsetup doesn't upgrade an existing table (with
508 potentially lot of data) from MyISAM to InnoDB. just warn.
509 only new tables should become InnoDB on creation. also,
510 detect InnoDB even on old MySQL 4.0.x, not just 4.1/5.0.
512 * make fsck faster by reducing number of db queries (both
513 reads and writes), though more unrelated fastness remains to
516 * make fsck_status faster (keep summary stats of evcode counts,
517 rather than doing a full GROUP BY query all the time)
519 2007-04-20: Release version 2.09
521 * filesystem checker (Fsck worker). off by default, unless
522 it's enabled via protocol. Control/monitor it with mogadm
523 in MogileFS-Utils 2.08, which needs MogileFS::Client 1.06.
525 * replication speed-up on configurations with only 1 host.
526 (replication would randomly have no suggestions before, when
527 there was only 1 target host, so replication would be rescheduled
528 until the future, when random returned a different device on
531 2007-04-17: Release version 2.08
533 * (no runtime-visible changes from 2.07)
535 * mogilefsd: remove incomplete "Checker" worker, replace with
536 incomplete "Fsck" worker.
538 * test cleanup/robustness improvements. properly skips testing when
539 testing deps not found. but searches harder for them now, too.
540 tests run under "make disttest".
542 * packaging cleanups, released using ShipIt.
547 * mogilefsd: Split Plugin::MetaData and Plugin::FilePaths into their own distributions.
549 * mogilefsd: Fix mogdbsetup to not ask empty questions.
551 * mogilefsd: command line/config file support for listening on specific IPs, also
552 support for listening on multiple IPs/ports
555 * mogstored: use XS HTTPHeaders by default, unless disabled with environment variable
557 * mogilefsd: memcache support for get_paths (see doc/memcache-support.txt)
560 * mogstored: make child processes be exec'ed (as as their own scripts, not inheriting
561 Perlbal, Linux::AIO/IO::AIO, etc baggage). so they don't own listening
562 sockets, pipes to child workers, signal handlers, etc. just a lot
563 cleaner now, and SIGTERM, SIGINT properly shut everything down now,
564 both in foreground and as daemon
567 * mogstored: this changelog is totally neglected. :/ see svn log.
569 * mogstored: make perlbal's "shutdown graceful" work, by not doing
570 sidechannel accepting ourselves (which never hung up),
571 but subclass Perlbal's TCPListener class, which does it
574 2006-12/2007-01: (2.00_05)
575 * mogilefsd: everything converted to OO API internally. old internal APIs removed.
577 * mogilefsd: be database-agnostic. Currently only works with MySQL (and
578 SQLite as a joke/demo), but Pg/Oracle coming in the future.
580 * mogilefsd: built-in I/O activity monitoring between mogstored/mogilefsd Monitor
583 * mogilefsd: much improved internal communication between worker processes
585 * mogilefsd: start of better docs
588 * mogilefsd: pidfile support (Radu Greab <radu@yx.ro>)
592 * mogilefsd: remove all old internal APIs, update everything to use new OO APIs,
593 expanding OO APIs where necessary (lots of places). so much more
594 beautifully hackable now.
596 * mogstored: kill child processes (diskusage and iostat) when being killed.
599 * mogstored: set aio threads after daemonizing. needed by Linux::AIO/IO::AIO, it seems?
602 * mogilefsd: remove non-HTTP mode ("NFS mode") from the server
605 * mogstored: refuse to start up with missing Linux::AIO/IO::AIO or broken Linux::AIO
608 * mogstored: set aio_threads as a function of number of disks
611 * mogilefsd: major refactoring/cleanup/new features ("MogileFS 2.0")
614 * mogilefsd: fix dataloss bug when the 'tempfile' table is InnoDB and the
615 server is restarted while the tempfile table is empty.
618 * mogilefsd: allow create_open to take optional fid parameter which enables you to
619 dictate which fid to use internally and to not rely on MySQL's auto_increment
622 * mogilefsd: make Mgd::get_device_summary() always return all devices, regardless
625 * mogilefsd: update all callers of get_device_summary to filter on the device
626 status, if they need to. (provided more clarity into what
627 callers' intentions were...)
629 * mogilefsd: add a new device state 'readonly' which means: it can be read from
630 from clients, it can be replicated from, but no new files can go
631 on it or be replicated onto it. and it also reaps, meaning the
632 device is fucked. the filesystem probably ate itself.
635 * mogstored: write out usage files for devices, even if they're not on their own mount point.
636 also explicitly include the '-k' flag to df, so we know they're KiB.
639 * mogstored: new config syntax and command line options