Paul Tagliamonte: On my way to DebConf 14
Slowly, but I ll be in by Tonight, PST (early morning EST!)
Hope to see everyone soon!
Slowly, but I ll be in by Tonight, PST (early morning EST!)
Hope to see everyone soon!
A new upstream release of the Eigen C++ template
library for linear algebra was released a few days ago. And Yixuan Qiu did some
really nice work rolling this into a new
RcppEigen released
and then sent me a nice pull requent. The new version is now on
CRAN, and I will prepare a
Debian in a moment too.
Upstream changes for Eigen are
summarized in their changelog.
On the RcppEigen
side, Yixuan also rolled in some more changes on as() and
wrap() converters as noted below in the NEWS entry.
Changes in RcppEigen version 0.3.2.2.0 (2014-08-19)
- Updated to version 3.2.2 of Eigen
-
Rcpp::as() now supports the conversion from R vector
to row array , i.e., Eigen::Array<T, 1,
Eigen::Dynamic>
-
Rcpp::as() now supports the conversion from
dgRMatrix (row oriented sparse matrices, defined in Matrix package) to Eigen::MappedSparseMatrix<T,
Eigen::RowMajor>
- Conversion from R matrix to
Eigen::MatrixXd and
Eigen::ArrayXXd using Rcpp::as() no longer gives
compilation errors
Courtesy of CRANberries, there
are diffstat reports for the
most recent release.
Questions, comments etc about RcppEigen should go to the
rcpp-devel mailing list
off the R-Forge page.
This post by Dirk Eddelbuettel
originated on his Thinking inside the box blog.
Please report excessive re-aggregation in third-party for-profit settings.
Recently I've been getting annoyed with the Debian Administration website; too often it would be slower than it should be considering the resources behind it.
As a brief recap I have six nodes:
| Master Host | Other hosts |
Running:
|
Running:
|
Yesterday, I spent most of the day finishing up the multiarch work I'd
been doing on introducing
multiarch to the eID middleware, and did another release of the Linux
builds. As such, it's now possible to install 32-bit versions of the eID
middleware on a 64-bit Linux distribution. For more details, please see
the
announcement.
Learning how to do multiarch (or biarch, as the case may be) for three
different distribution families has been a, well, learning experience.
Being a Debian Developer, figuring out the technical details for doing
this on Debian and its derivatives wasn't all that hard. You just make
sure the libraries are installed to the multiarch-safe directories
(i.e., /usr/lib/<gnu arch triplet>), you add some
Multi-Arch: foreign or Multi-Arch: same headers where appropriate,
and you're done. Of course the devil is in the details (define "where
appropriate"), but all in all it's not that difficult and fairly
deterministic.
The Fedora (and derivatives, like RHEL) approach to biarch is that
64-bit distributions install into /usr/lib64 and 32-bit distributions
install into /usr/lib. This goes for any architecture family, not just
the x86 family; the same method works on ppc and ppc64. However, since
fedora doesn't do powerpc anymore, that part is a detail of little
relevance.
Once that's done, yum has some heuristics whereby it will prefer
native-architecture versions of binaries when asked, and may install
both the native-architecture and foreign-architecture version of a
particular library package at the same time. Since RPM already has
support for installing multiple versions of the same package on the same
system (a feature that was originally created, AIUI, to support the
installation of multiple kernel versions), that's really all there is to
it. It feels a bit fiddly and somewhat fragile, since there isn't really
a spec and some parts seem fairly undefined, but all in all it seems to
work well enough in practice.
The openSUSE approach is vastly different to the other two. Rather than
installing the foreign-architecture packages natively, as in the Debian
and Fedora approaches, openSUSE wants you to take the native
foo.ix86.rpm package and convert that to a foo-32bit.x86_64.rpm
package. The conversion process filters out non-unique files (only
allows files to remain in the package if they are in library
directories, IIUC), and copes with the lack of license files in
/usr/share/doc by adding a dependency header on the native package.
While the approach works, it feels like unnecessary extra work and
bandwidth to me, and obviously also wouldn't scale beyond biarch.
It also isn't documented very well; when I went to openSUSE IRC channels
and started asking questions, the reply was something along the lines of
"hand this configuration file to your OBS
instance". When I told them I wasn't actually using OBS and had no plans
of migrating to it (because my current setup is complex enough as it is,
and replacing it would be far too much work for too little gain), it
suddenly got eerily quiet.
Eventually I found out that the part of OBS which does the actual build
is a separate codebase, and
integrating just that part into my existing build system was not that
hard to do, even though it doesn't come with a specfile or RPM package
and wants to install files into /usr/bin and /usr/lib. With all that
and some more weirdness I've found in the past few months that I've been
building packages for openSUSE I now have... Ideas(TM) about how
openSUSE does things. That's for another time, though.
(disclaimer: there's a reason why I'm posting this on my personal blog
and not on an official website... don't take this as an official
statement of any sort!)
I still consider myself a newbie teacher. I'm just starting my fourth semester. And yes, I really enjoy it.
Now, how did I come to teaching? Well, my training has been mostly on stages for different conferences. More technical, more social, whatever I have been giving ~10 talks a year for ~15 years, and I must have learnt something from that.
Some good things, some bad habits.
When giving presentations, a most usual technique is to prepare a set of slides to follow/support the ideas. And yes, that's what I did for my classes: Since my first semester, I prepared a nice set of slides, thematically split in 17 files, with ~30 to ~110 pages each (yes, huge variation). Given the course spans 32 classes (72 hours, 2 hours per class), each slide lasts for about two classes.
But, yes, this tends to make the class much less dynamic, much more scripted, rigid, and... Boring. From my feedback, I understand the students don't think I am a bad teacher, but still, I want to improve!
So, today I was to give the introduction to memory management. Easy topic, with few diagrams and numbers, mostly talking about the intuitive parts of a set of functions. I started scribbling and shortening the main points on a piece of paper (yes, the one on the picture). I am sure I can get down to more reduction But this does feel like an improvement!
The class was quite successful. I didn't present the 100% of the material (which is one of the reasons I cling to my presentations I don't want to skip important material), and at some point I do feel I was a bit going in circles. However, Operating Systems is a very intuitive subject, and getting the students to sketch by themselves the answers that describe the working of real operating systems was a very pleasant experience!
Of course, when I use my slides I do try to make it as interactive and collaborative as possible. But it is often unfeasible when I'm following a script. Today I was able to go around with the group's questions, find my way back to the outline I prepared.
I don't think I'll completely abandon my slides, specially for some subjects which include many diagrams or pictures. But I'll try to have this alternative closer to my mind.
I have received two MIPS Creator CI20 boards, thanks to Imagination Technologies. It s a small MIPS32 development board:
As you can see it comes in a nice packaging with a world-compatible power adapter. It uses a Ingenic JZ4780 SoC with a dual core MIPS32 CPU running at 1.2GHz with a PowerVR SGX540 GPU. The board is fitted with 1GB of RAM, 8GB of NOR flash, HDMI output, USB 2.0 ports, Ethernet + Wi-Fi + BlueTooth, SD card slot, IR receiver, expansion headers and more. The schematics are available. The Linux kernel and the U-Boot bootloader sources are also available.
Powering this board with a USB keyboard, a USB mouse and a HDMI display, it boots off the internal flash on a Debian Wheezy up to the XFCE environment. Besides the kernel, the Wi-Fi + Bluetooth firmware, and very few configuration changes, it runs a vanilla Debian. Unfortunately I haven t found time to play more with it yet, but it looks already quite promising.
The board has not been formally announced yet, so I do not know when it will become available, nor the price, but if you are interested I ll bring it to DebConf14. Don t hesitate to ask me if you want to look at it or play with it.
We ve been busy setting up a Virtual Machine (VM) image to be used by participants of a MOOC that s opening in early september on Relational Databases at Telecom SudParis.
We ve chosen to use Vagrant and VirtualBox which are used to build, distribute and run the box, providing scriptability (reproducibility) and making it portable on most operating systems.
The VM itself contains a Debian (jessie) minimal system which runs (in the background) PostgreSQL, Apache + mod_php, phpPgAdmin, and a few applications of our own to play with example databases already populated in PostgreSQL.azerty keyboards. This and other context elements led us to add some customizations (locale, APT mirror) in provisioning scripts run during the box creation.
At the moment, we generate 2 variants of the box, one for 32 bits kernel (i686) and one for 64 bits kernel (amd64) which (once compressed) represent betw. 300 and 350 Mb.
The resulting boxes are uploaded to a self-hosting site, and distributed through vagrantcloud. Once the VM are created in VirtualBox, the typical VMDK drives file is around 1.3Gb.
We use our own Debian base boxes containing a minimal Debian jessie/testing, instead of relying on someone else s, and recreate them using (the development branch version of) bootsrap-vz. This ensure we can put more trust in the content as it s a native Debian package installation without MITM intervention.
The VM are meant to be run headless for the moment, keeping their size to the minimum, even though we also provide a script to install and configure a desktop environment based on XFCE4.
The applications are either used through vagrant ssh, for instance for SQL command-line in psql, or in the Web browser, for our own Web based SQL exerciser, or phpPgAdmin (see a demo screencast (in french, w/ english subtitles)), which can then be used even off-line by the participants, which also means this requires no servers availability for our IT staff./vagrant/ which allows editing on the host with the favourite native editor/IDE, while running PHP inside the VM s Apache + mod_php.
The sources of our environment are available as free software, if you re interested to replicate a similar environment for another project.
As we re still polishing the environment before the MOOC opening (on september 10th), I m not mentioning the box URLs but they shouldn t be too hard to find if you re investigating (refering to the fusionforge project s web site).
We don t know yet how suitable this environment will be for learning SQL and database design and programming, and if Vagrant will bring more difficulties than benefits. Still we hope that the participants will find this practical, allowing them to work on the lab / exercises whenever and wherever they chose, removing the pain of installing and configuring a RDBMS on their machines, or the need to be connected to a cloud or to our overloaded servers. Of course, one limitation will be the requirements on the host machines, that will need to be reasonably modern, in order to run a virtualized Linux system. Another is access to high bandwidth for downloading the boxes, but this is kind of a requirement already for downloading/watching the videos of the MOOC classes
Summer is cool in Mexico City.
It is cool because, unlike Spring, this is our rainy season And rains are very predictable. Almost every day we wake up with a gorgeous, clean, blue sky.
Cool, nice temperature, around 15 C. The sun slowly evaporates the rain throughout the morning; when I go out for lunch, the sky is no longer so blue, giving way to a seemingly dirty white/grayish tint. No, it's not our world-famous pollution: It's just yesterday's rain.
Rain starts falling usually between 4 and 7 PM. Sometimes it starts as a light rain, sometimes it starts with all of its thunder, all of its might. But anyway, almost every night, there is a moment of awe, of not believing how much rain we are getting today.
It slowly fades away during the late night. And when I wake up, early next morning, everything is wet and still smells fresh.
Yes, I love our summer, even though it makes shy away from my much enjoyed cycling to work and school. And I love taking some minutes off work, look through the window of my office (located ~70m over the level of our mostly flat city) and watching how different parts of the city have sun or rain; learning to estimate the distance to the clouds, adding it to the direction and guessing which of my friends have which weather.
But I didn't realize our city had so clearly defined micro-climates... (would they really be *micro*-climates?) In fact, it even goes against my knowledge of Mexico City's logic I always thought Coyoac n, towards the South of the city, got more rain than the Center and North because we are near the mountains, and the dominant air currents go Southwards, "clumping" the clouds by us.
But no, or at least, not this year. Regina (still in the far South Far because she's too far away from me and I'm too egocentric; she returns home after DebConf) often asks me about the weather, as our friends working nearer the center of the city. According to the photos they post on their $social_media_of_the_day accounts, rains are really heavier there.
Today I heard on the radio accounts of yesterday's chaos after the rain. This evening, at ESIME-Culhuac n, I saw one of the reported fallen trees (of course, I am not sure if it's from yesterday's rain). And the media pushes galleries of images of a city covered in hail... While in Copilco we only had a regular rain, I'd even say a mild one.
This city is bigger than any cloud you can throw at it.
| Attachment | Size |
|---|---|
| IMG_20140819_155052.jpg | 929.69 KB |
Debian LTS - impressions and thoughts from my first month involvement
About LTS - we want feedback and more companies supporting it financially
Squeeze LTS, and even more Debian LTS, is a pretty young project, started in May 2014, so it's still a bit unclear where exactly we'll be going
One purpose of this post is to spread some information about the initiative and invite you to tell us what you think about it or what your needs are.
LTS stands for "Long Term Support" and the goal of the project is to extend the security support for Squeeze (aka the current oldstable distribution) by two years. If it weren't for Squeeze LTS, the security support for it would have been stopped in May 2014 (=one year after the release of the current stable distribution), which for many is a too short timespan after it's release in February 2011. It's an experiment, we hope that there will be a similar Wheezy LTS initiative in future, but the future is unwritten and things will change based on our experiences and your needs.
If you have feedback on the direction LTS should take (or anything else LTS related), please comment on the lts mailing list. For immediate feedback there is also the #debian-lts IRC channel.
Another quite pragmatic way to express your needs is to read more about how to financially contribute to LTS and then doing exactly that - and unsurprisingly we are prioritizing the updates based on the needs expressed from our paying customers.
My LTS work in July 2014
So, "somehow" I started working for money on Debian LTS in July, which means there were 10h I got paid, and probably another 10h where I did LTS related work unpaid. I used those to release four updates for squeeze-lts (linux-2.6, file, munin and reportbug) fixing 22 CVEs in total.
The unpaid work was mostly spent on unsuccessfully working on security updates and on adding support for LTS to the security team tracker, which I improved but couldn't fully address and which I haven't properly shared / committed yet... but at least I have a local instance of the tracker now, which - for LTS - is more useful than the .debian.org one. Hopefully during DebConf14 we'll manage to fix the tracker for good.
Without success I've looked at libtasn1-3 (where the first fixes applied easily but then the code had changed too much from what was in squeeze compared to the available patches that I gave up) and libxstream-java (which is at version 1.3, while patches exist for upstream branches 1.4 and 2.x, but those need newer java to build and maybe if I'll spend two more hours I'll can get it build and then I'll have to find a useful test case, which looked quite difficult on a brief look.. so maybe I give up on libxstream-java too.... OTOH, if you use it and can do some testing, please do tell me.
Working on all these updates turned out to be more team work than expected and a lot of work involving code (which I did expect), and often code which I'd normally not look at... similarily with tools: one has to deal with tools one doesnt like, eg I had to install cdbs...
And as I usually like challenges, this has actually been a lot of fun! Though it's also pretty cool to use common best practices, easy and understandable workflows. I love README.Source (or better yet, when it's not needed). And while git is of course really really great, it's still very desirable if your package builds twice (=many times) in a row, without resetting it via git.
Some more observations
The first 16 updates (until July 19th) didn't have a DLA ID, until I suggested to introduce them and insisted until we agreed. So now we agreed to put the DLA ID in the subject of the announcement mails and there is also some tool support for generating the templates/mails, but enforcing proper subjects is not done, as silent bounces are useless (and non silent ones can be abused too easily). I'm not really happy about this, but who is happy with the way email works today? And I agree, it's not the end of the world if an LTS announcement is done without a proper ID, but it looks unprofessional and could be avoided, but we have more important work to do. But one day we should automate this better.
Another detail I'm not entirely happy is the policy/current decision that "almost everything is fine to upload if deemed sensible by the uploader" (which is everyone in the Debian upload keyring(s)). In discussions before actually having the archive some people suggested the desire to upload new upstream versions too (eg newer kernels, iceweasel or other software to keep running a squeeze desktop in the modern world were discussed). I sincerely hope for most intrusive new upstream versions squeeze-(sloppy-)backports is used instead, and squeeze-lts rather not. Luckily so far all uploads were (IMHO) sensible and so, right now, I will just say that I hope it will stay this way. And it's true, one also has to install these upgrades in the first place. But people do that blindly all the time...
So by design/desire currently there is no gatekeeping mechanism whatsover (no NEW, no proposed updates), except that only some selected "few" can upload. What is uploaded (and signed correctly), gets pushed to archive, buildds and the mirrors, and hopefully maybe someone will send an announcement. So far this has worked remarkedly well - and it's also the way the Debian Security team works, as I'm told. Looking at this from a process quality / automatisation perspective, all this manual and errorprone labour seems very strange to me.
And then there is another thing: as already mentioned, the people working paid hours for this, are prioritizing their work based on customer requests. So we did two updates (python-scipy and file), which are not fixed in wheezy yet. I think this is unfortunate and while I could probably prepare the wheezy DSA for file, I don't really want to join the Security Team... or maybe I want/should join the Security Team and be a seldomly active member (eg fixing file in wheezy now....)
A note related to this: out of those 37 uploads done until today, 16 were done by those two people being paid, while the other 21 uploads were done by 10 volunteers (or at least not paid by Debian LTS). It will be interesting to see how this statistics evolves over time.
Last, but not least, there is also this can of worms (aka: the discussion) about paying people to work on Debian... I do agree it's work we didnt find volunteers for and I also see how the (financial side of the) setup is done outside of Debian (and well too, btw!), but... then we also use Debian ressources like buildds, the archive itself and official mailing lists. Also I'm currently biased in this discussion, as I directly (and happily) profit from it. I'm mentioning this here, because I believe it's important we discuss this and come to both good and practical conclusions. FWIW, we have also discussed this on the list, feel free to search the archives for it.
To bring this post to an end: for those attending DebConf14 (directly or thanks to some ninjas), there will be an event about LTS in Portland, though I'm not sure yet what I will have to talk about what hasn't been already covered here
But this probably means that will be a good opportunity for you to do lots of talking instead! I'm curious what you will have to say!
Thanks for reading this far. I think I can promise that my next LTS report will be shorter
After two pre-releases in the last few days,
Conrad finalised a new
Armadillo version 4.400 today.
I had kept up with the pre-releases, tested twice against all eighty (!!)
CRAN dependents of
RcppArmadillo
and have hence uploaded RcppArmadillo 0.4.400.0 to
CRAN and into
Debian.
This release brings a number of new upstream features which are detailed
below. As included is s bugfix for sparse matrix creation at the
RcppArmadillo
end which was found by the ASAN tests at CRAN ---
which are similar to the sanitizers
tests I recently blogged. I was able to develop and test the fix in the very
docker r-devel-san images
I had written about which was nice. Special thanks also to Ryan Curtin for help
with the fix.
Changes in RcppArmadillo version 0.4.400.0 (2014-08-19)Courtesy of CRANberries, there is also a diffstat report for the most recent release. As always, more detailed information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the R-Forge page.
- Upgraded to Armadillo release Version 4.400 (Winter Shark Alley)
- added
gmm_diagclass for statistical modelling using Gaussian Mixture Models; includes multi-threaded implementation of k-means and Expectation-Maximisation for parameter estimation- added
clamp()for clamping values to be between lower and upper limits- expanded batch insertion constructors for sparse matrices to add values at repeated locations
- faster handling of subvectors by
dot()- faster handling of aliasing by submatrix views
- Corrected a bug (found by the g++ Address Sanitizer) in sparse matrix initialization where space for a sentinel was allocated, but the sentinel was not set; with extra thanks to Ryan Curtin for help
- Added a few unit tests for sparse matrices
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
Today I did something interesting with the Debian packaging for
propellor, which seems like it could
be a useful technique for other Debian packages as well.
Propellor is configured by a directory, which is maintained as a local git
repository. In propellor's case, it's ~/.propellor/. This contains a lot
of haskell files, in fact the entire source code of propellor! That's
really unusual, but I think this can be generalized to any package whose
configuration is maintained in its own git repository on the user's
system. For now on, I'll refer to this as the config repo.
The config repo is set up the first time a user runs
propellor. But, until now, I didn't provide an easy way to update
the config repo when the propellor package was updated. Nothing would
break, but the old version would be used until the user updated it
themselves somehow (probably by pulling from a git repository over the
network, bypassing apt's signature validation).
So, what I wanted was a way to update the config repo, merging in any
changes from the new version of the Debian package, while preserving the
user's local modifications. Ideally, the user could just run git merge
upstream/master, where the upstream repo was included in the
Debian package.
But, that can't work! The Debian package can't reasonably include the
full git repository of propellor with all its history. So, any git repository
included in the Debian binary package would need to be a synthetic one, that
only contains probably one commit that is not connected to anything else. Which
means that if the config repo was cloned from that repo in version 1.0, then
when version 1.1 came around, git would see no common parent when merging 1.1
into the config repo, and the merge would fail horribly.
To solve this, let's assume that the config repo's master branch has
a parent commit that can be identified, somehow, as coming from a past
version of the Debian package. It doesn't matter which version, although
the last one merged with will be best. (The easy way to do this is to set
refs/heads/upstream/master to point to it when creating the config repo.)
Once we have that parent commit, we have three things:
git merge upstream/master to get them. The resulting history
looks like this:
* Merge remote-tracking branch 'upstream/master'
\
* merging upstream version
\
* upstream version
* user change
/
* upstream version
So, generalizing this, if a package has a lot of config files, and
creates a git repository containing them when the user uses it
(or automatically when it's installed), this method can be used to provide
an easily mergable branch that tracks the files as distributed with the package.
It would perhaps not be hard to get from here to a full git-backed version of
ucf. Note that the Debian binary package doesn't have to ship a git
repisitory, it can just as easily ship the current version of the config files
somewhere in /usr, and check them into a new empty repository as part of the
generation of the upstream/master branch.
I've switched my Git repositories to GitHub recently,
and started to watch my contributions statistics, which were very low
considering I spend my days hacking on open source software, especially
OpenStack.
A little more than 2 years ago, the
Ceilometer project was launched inside
the OpenStack ecosystem. Its main objective was to measure OpenStack cloud
platforms in order to provide data and mechanisms for functionalities such
as billing, alarming or capacity planning.
In this article, I would like to relate what I've been doing with other
Ceilometer developers in the last 5 months. I've lowered my involvement in
Ceilometer itself directly to concentrate on solving one of its biggest
issue at the source, and I think it's largely time to take a break and talk
about it.
Ceilometer early design
For the last years, Ceilometer didn't change in its core architecture.
Without diving too much in all its parts, one of the early design decision
was to build the metering around a data structure we called samples. A
sample is generated each time Ceilometer measures something. It is composed
of a few fields, such as the the resource id that is metered, the user and
project id owning that resources, the meter name, the measured value, a
timestamp and a few free-form metadata. Each time Ceilometer measures
something, one of its components (an agent, a pollster ) constructs and
emits a sample headed for the storage component that we call the
collector.
This collector is responsible for storing the samples into a database. The
Ceilometer collector uses a pluggable storage system, meaning that you can
pick any database system you prefer. Our original implementation has been
based on MongoDB from the beginning, but we then added a SQL driver, and
people contributed things such as HBase or DB2 support.
The REST API exposed by Ceilometer allows to execute various reading
requests on this data store. It can returns you the list of resources that
have been measured for a particular project, or compute some statistics on
metrics. Allowing such a large panel of possibilities and having such a
flexible data structure allows to do a lot of different things with
Ceilometer, as you can almost query the data in any mean you want.
The scalability issue
We soon started to encounter scalability issues in many of the read requests
made via the REST API. A lot of the requests requires the data storage to do
full scans of all the stored samples. Indeed, the fact that the API allows
you to filter on any fields and also on the free-form metadata (meaning non
indexed key/values tuples) has a terrible cost in terms of performance (as
pointed before, the metadata are attached to each sample generated by
Ceilometer and is stored as is). That basically means that the sample data
structure is stored in most drivers in just one table or collection, in
order to be able to scan them at once, and there's no good "perfect"
sharding solution, making data storage scalability painful.
It turns out that the Ceilometer REST API is unable to handle most of the
requests in a timely manner as most operations are O(n) where n is the
number of samples recorded (see
big O notation if you're
unfamiliar with it). That number of samples can grow very rapidly in an
environment of thousands of metered nodes and with a data retention of
several weeks. There is a few optimizations to make things smoother in
general cases fortunately, but as soon as you run specific queries, the API
gets barely usable.
During this last year, as the Ceilometer PTL, I discovered these issues
first hand since a lot of people were feeding me back with this kind of
testimony. We engaged several blueprints to improve the situation, but it
was soon clear to me that this was not going to be enough anyway.
A cloud of gnocchis!
time.time()). I've started to hack on that in my own fork, but then
everything broke. The whisper project code base is, well, not the state of
the art, and have 0 unit test. I was starring at a huge effort to transform
whisper into the time-series format I wanted, without being sure I wasn't
going to break everything (remember, no test coverage).
I decided to take a break and look into alternatives, and stumbled upon
Pandas, a data manipulation and statistics
library for Python. Turns out that Pandas support time-series natively, and
that it could do a lot of the smart computation needed in Gnocchi. I built a
new file format leveraging Pandas for computing the time-series and named it
carbonara (a wink to both the
Carbon project and pasta, how
clever!). The code is quite small (a third of whisper's, 200 SLOC vs 600
SLOC), does not have many of the whisper limitations and it has test
coverage. These Carbonara files are then, in the same fashion, stored into
Swift containers.
Anyway, Gnocchi storage driver system is designed in the same spirit that
the rest of OpenStack and Ceilometer storage driver system. It's a plug-in
system with an API, so anyone can write their own driver. Eoghan Glynn has
already started to write a InfluxDB driver, working
closely with the upstream developer of that database. Dina Belova started to
write an OpenTSDB driver. This helps to make sure
the API is designed directly in the right way.
Handling resources
Measuring individual entities is great and needed, but you also need to link
them with resources. When measuring the temperature and the number of a
people in a room, it is useful to link these 2 separate entities to a
resource, in that case the room, and give a name to these relations, so one
is able to identify what attribute of the resource is actually measured. It
is also important to provide the possibility to store attributes on these
resources, such as their owners, the time they started and ended their
existence, etc.
Relationship of entities and resources
The indexer classes and their relations
Macroscopic view of the Gnocchi architecture
Cl ment drawing the logo
sigaction bit me.
There's a system call and a libc function of the similar (sigaction vs rt_sigaction) name but they behave differently.
Now that I've had my solar generation system for a little while, I thought I'd
write a follow up post on how it's all going.
Energex came out a week ago last Saturday and swapped my electricity meter over
for a new digital one that measures grid consumption and excess energy
exported. Prior to that point, it was quite fun to watch the old analog meter
going backwards. I took a few readings after the system was installed, through
to when the analog meter was disconnected, and the meter had a value 26 kWh
lower than when I started.
I've really liked how the excess energy generated during the day has
effectively masked any relatively small overnight power consumption.
Now that I have the new digital meter things are less exciting. It has a meter
measuring how much power I'm buying from the grid, and how much excess power
I'm exporting back to the grid. So far, I've bought 32 kWh and exported 53 kWh
excess energy. Ideally I want to minimise the excess because what I get paid
for it is about a third of what I have to pay to buy it from the grid. The
trick is to try and shift around my consumption as much as possible to the
daylight hours so that I'm using it rather than exporting it.
On a good day, it seems I'm generating about 10 kWh of energy.
I'm still impatiently waiting for PowerOne to release their WiFi
data logger card. Then I'm hoping I can set up something automated to
submit my daily production to PVOutput for added
geekery.
Firstly, thanks to all who responded to my previous rant. It turns out exactly what I wanted does exist in the form of a ID-000 format smartcard combined with a USB reader. Perfect. No idea why I couldn t find that on my own prior to ranting, but very happy to have found it now.
Secondly, now that I ve got my keys and management practices in order, it is time to begin transitioning to my new key.
Click this link to find the properly signed, full transition statement.
I m not going to paste the full statement into this post, but my new key is:
pub 4096R/A48F065A 2014-07-27 [expires: 2016-07-26]
Key fingerprint = DBB7 64A1 797D 2E21 C799 3CD7 A628 CB5F A48F 065A
uid Matthew Brown <matt @mattb.net.nz>
uid Matthew Brown <mattb @debian.org>
sub 4096R/1937883F 2014-07-27 [expires: 2016-07-26]
If you signed my old key, I d very much appreciate a signature on my new key, details and instructions in the transition statement. I m happy to reciprocate if you have a similarly signed transition statement to present.
I ll be there this year!
Talks look amazing, I can t wait to hit up all the talks. Looks really well organized! Talk schedule has a bunch that I want to hit, I hope they re recorded to watch later!
If anyone s heading to PyGotham, let me know, I ll be there both days, likely floating around the talks.
Next.