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