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