Hi there,

I've got an updated webrev (and incremental) for the http-depot work:

https://cr.opensolaris.org/action/browse/pkg/timf/http-depot-webrev-2


This fixes a few problems in the previous webrev:

1. mod_wsgi has an inactivity-timeout that causes it to kill any Python interpreters that have not served a request in that time period, freeing up machine resources. Unfortunately, for long-running depot index refreshes, this could result in a corrupt search index (which we gracefully deal with, but it still shouldn't happen)

To fix this, I've added a /depot/depot-keepalive resource to the WSGI app, and a background thread that occasionally pings the WSGI app while background tasks are being processed. To make testing easier, I've added a /depot/depot-wait-refresh resource, which allows us to proceed with testing only when search indexes have been built.

2. to improve responsiveness for search requests, I'm only checking that an index directory exists when initially loading the WSGI app, rather than forcing an index refresh each time. I'm also bumping the inactivity-timeout up to 5 minutes.

3. pkg.depot-config was using misc.valid_pub_prefix(..) to determine whether repository prefixes were valid, however this was too strict for some SMF instance names, so I'm now using the same RE that SMF uses instead.

4. Update copyrights to 2013

Comments would be most welcome,

        cheers,
                        tim

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to