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