Eddy Petrișor: crazy idea: user supported snapshot.debian.net
I just had this crazy idea about solving snapshot.debian.net's space issue which just might work if done right.We all know that snapshot.debian.net has ran out of space in early May this year and we all lost a valuable service. Since there are probably many users, developers and maintainers which find this service useful, it might make sense to think that the users themselves could solve the problem.
How? Think about implementing a really distributed storage/file system (not necesarly a real file system) that can rely on cluster nodes that can enter or exit at any time and the nodes are contributed by users, very much alike the GoogleFS file system (or maybe clients in a torrent swarm).
First problems that I can already see:
- there must be some indexing service that should run 24x7 to manage the information about the blocks which are desired.
- some data should always be kept on a trusted machine - the gpg signatures, the Packages files indexing information and meta data
- there might be a security risk involved since data would be stored on untrusted machines, but a sha1/md5 check in colaboration with the gpg signature should be enough (which isn't always doable - see large packages like openoffice.org or game data packages); if there are reasons why this might not be secure, maybe we need to rethink a little about the dpkg-sig package and see if we can get all the packages in the archive to be individually signed when entering the archive, or something of that sort
- the meta-data of the FS cluster might be really big, but my gut feeling tells me that it won't be as big as the current snapshot.d.n storage
- when a file is requested, the file needs to be cached on a central server so it can be assembled and its checksum be verified before being delivered to the client requesting it
- people might donate really little space compared to their usage
- some nodes of the network are special and this could lead to the failure of the entire infrastructure in case the special nodes fail; some of these nodes might turn out to need really big muscles
- some data might be unavailable at times depending on the clients connected to the network at different points in time
- in an attempt to create more copies of a block in more nodes in the network, a DoS might be triggered if many clients request the same info from a (set of) node(s) containing the rare info - still torrent's way of workig seems to cope quite well with that model
- none of this is implemented and probably I won't do it myself, although it could be a really nice project, even it is doomed to fail from day 1
Other ideas:
- maybe it would make more sense for the FS to actually be an ever-growing torrentt which people can connect to via some special client which would allow pushing to the clients in order to store information
- the number of copies of a file (or chunk of a file) in the distributed storage should be higher for more recent packages and lower for older ones (still one copy might be necessary to be stored on safe nodes - aka controled and trusted by debian so the information doesn't get lost - back to our current storage problem)
- probably the entire thing could be built somehow by piggy-backing the current apt-transport-debtorrent implementation or debtorrent, or apt's cache - the idea is that although not all files might be available, some people might still have relatiely recent packages files in their apt cache
- such a system, if done right, might prove to be usable as a live backup system between different nodes in the cluser, so it could be used in other situations by individuals, without the need of a central server - think trackerless trorrents
Of course, it's also true that the bigger sites, like dice.com, had more jobs total. Indeed, dice.com has more hits for Erlang than CrunchBoard does for Java!
One thing that has always annoyed me about most wiki is the way they
handle images.
While developing an RFID extension for
This morning's newspaper featured a front page article reporting that 

(These images are from the Mac, which is still using System 9.something.
I had to remember Command-Shift-3 to take a screenshot and use StuffIt
to get them off of it. Srsly. I can't remember the last time I used
StuffIt.)
And here is a CRT, showing the refreshes: (The DIN3 line is the actual
signal, and the others are integrated over some number of milliseconds
to compensate for scanning and attempt to get a usable number. Of
course, this is done in hardware, not synchronized to anything else.)
Now, this is the one that blew my mind. The ThinkPad's internal LCD:
You can see that 60 Hz is spaced much farther apart, and that there
are 6 cycles as intended, but. It's acting like a CRT! On the refresh,
it puts out enough light to trigger the photocell, but inbetween,
nothing. I ought to be noticing flicker and/or getting headaches all
the time, if this is truly the case. (I guess I did get glasses for and
because of staring at computer displays all the time. Should update my
hackergotchi.) I have to admit I do not understand what is going on here
at all. But it seems like making any assumptions about a display is (as
the voice in my head was telling me all along) a very bad idea. Perhaps
someone can email me some clue. But at least I have some hard data to
validate my subjective opinion of the ThinkPad's internal LCD.
Anyway: I still recommend the ThinkPad, even if the display is awful.
I have a nice external monitor connected through DVI to the dock at
home, and I mainly use a laptop so I can get out of the house and go
hack outside or in a coffeeshop (not ideal lighting). The build quality,
keyboard/trackpoint, performance, and the fact that Debian (testing or
unstable, anyway) Just Works are all higher up on the list for me. I do
wish I could afford the new lighter one, though.
Sometimes people propose other solutions to have the Aptitude-gtk project done, like :
Because I found it a tad non-obvious here a little tutorial. First we enable serial access to
Newegg.com just had a special on 750Gb Seagate SATA drives, so I thought it
might be a good opportunity to replace my 400Gb IDE drives with ones that
can be connected to the host by something less ghetto than IDE to USB 2.0
adapters. Who knows? I might even lash out on some kind of enclosure,
instead of sitting them on cork trivets on top of the computer they're
attached to.
So once the drives turn up, all I'll need to do is replace the PCI 4 port
USB 2.0 controller with a PCI 4 port eSATA controller.
I'm a total SATA ignoramus, so if anyone has any suggestions on what's good,
or what to avoid, shoot me an email.