Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [SERVER] Add bgrMinClients: Thresold to control when BGR starts | Simon Rettberg | 2018-04-12 | 1 | -0/+5 |
| | | | | | Background replication will not kick in if there aren't at least that many clients connected. | ||||
* | [SERVER] Experimental support for sparse files in proxy mode | Simon Rettberg | 2018-03-15 | 1 | -0/+14 |
| | | | | | | | | | | | | Will not preallocate images in this mode. Old images are only deleted if the disk is full, determined by write() calls to the cache file yielding ENOSPC or EDQUOT. In such a case, the least recently used image(s) will be deleted to free up at least 256MiB, and then the write() call will be repeated. This *should* work somewhat reliably unless the cache partition is ridiculously small. Performance might suffer a little, and disk fragmentation might occur much faster than in prealloc mode. Testing is needed. | ||||
* | [SERVER] Add multiple config options for limiting stuff | Simon Rettberg | 2017-11-08 | 1 | -0/+29 |
| | | | | | maxClients, maxImages, maxPayload, maxReplicationSize Refs #3231 | ||||
* | [SERVER] Support finer control over replication when a proxy connects to a proxy | Simon Rettberg | 2017-11-02 | 1 | -0/+7 |
| | | | | | | | Introduce new flag in "select image" message to tell the uplink server whether we have background replication enabled or not. Also reject a connecting proxy if the connecting proxy uses BGR but we don't, as this would basically force the image to be replicated locally too. | ||||
* | [SERVER] Improve handling of byte stats counters | Simon Rettberg | 2017-10-25 | 1 | -3/+4 |
| | | | | Less writes to variables, more up-to-date values for uplinks. | ||||
* | [SERVER] Fix types or add explicit casts everywhere we might have type ↵ | Simon Rettberg | 2017-10-24 | 1 | -4/+4 |
| | | | | conversion problems | ||||
* | [SERVER] Use monotonic clock for measuring time | Simon Rettberg | 2017-10-19 | 1 | -5/+9 |
| | | | | | Introduces new shared source unit timing.[ch] Closes #3214 | ||||
* | [SERVER] Try to connect to different server if proxy cycle is detected | Simon Rettberg | 2017-10-17 | 1 | -0/+1 |
| | |||||
* | [*] Support hop-counting in request header, protocol version 3 | Simon Rettberg | 2017-10-17 | 1 | -3/+6 |
| | | | | | | | | | | | | | | We steal 8 bits from the request offset to count hops when requests get relayed by proxies. This still leaves plenty of bits for the offset (56 bits, supporting images of up to 72 petabytes). This is used to detect proxy cycles. The algorithm is not perfect but should prevent endless relays of the same request. This is backwards compatible to old clients and servers, as the server only ever sets the hopcount in relayed requests if the upstream server is using protocol version 3 or newer, and clients are automatically upwards compatible as there is practically no image larger than 74PB, so the newly introduced hop count field is always 0 even in requests from old clients. | ||||
* | [SERVER] Implement HTTP RPC that supports different queries and ACL | Simon Rettberg | 2017-10-01 | 1 | -15/+5 |
| | | | | | | | | | - ACL is defined in new file rpc.acl - Queries are still WIP, for now something like /query?q=stats&q=images /query?q=clients works, although the parsing is still ugly - Also supports HTTP keep-alive | ||||
* | [*] Continue splitting #defines to clientconfig.h etc. | Simon Rettberg | 2017-09-02 | 1 | -1/+1 |
| | |||||
* | [SERVER] Split server-only defs from config.h to serverconfig.h | Simon Rettberg | 2017-08-26 | 1 | -0/+7 |
| | |||||
* | [SHARED] signal.h -> fdsignal.h | Simon Rettberg | 2016-02-10 | 1 | -1/+1 |
| | |||||
* | First steps in make signals more abstract from the underlying mechanism; ↵ | Simon Rettberg | 2016-02-05 | 1 | -1/+2 |
| | | | | | | | | | | replace epoll with poll. We now don't assume that a signal equals a single fd (eventfd on Linux). The next step would be to create a version of signal.c that uses a pipe internally, so it can be used on other platforms, like *BSD. This is also the reason epoll was replaced with poll in uplink.c | ||||
* | [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1 | Simon Rettberg | 2016-02-01 | 1 | -3/+3 |
| | | | | | | | | | | This was a wrong decision made long time ago, and it's broken in certain scenarios (eg. two servers serving from same NFS mount). Also it's of limited use anyways since it only supportes ASCII and would ignore umlauts, so blöd and BLÖD would still be considered two different images. So if you relied on this "feature" in any way, be careful when updating. | ||||
* | [SERVER] Fix a lot of (mostly harmless) data races | Simon Rettberg | 2016-01-11 | 1 | -0/+1 |
| | |||||
* | [SERVER] Performance: Optimized some functions (gprof) | Simon Rettberg | 2015-12-17 | 1 | -6/+9 |
| | | | | | | | A run with gprof revealed that background replication is a huge CPU hog. The block selection was very slow and has been improved a lot. Minor improvements were made to other functions that scan the cache map of an image and are thus relatively slow. | ||||
* | [SERVER] More fine grained locking for RPC; better error logging | Simon Rettberg | 2015-12-16 | 1 | -4/+8 |
| | |||||
* | [SERVER] Remove non-working images from list, plus refactoring | Simon Rettberg | 2015-12-15 | 1 | -0/+6 |
| | | | | | | | | | | Now that we can automatically load unknown images from disk on request, it makes sense to remove non-working images from the image list. On future requests, we will look for them on disk again, which is nice in case of temporary storage hickups. Also, some more ore less related locking has been refined (loading images, replicating images) | ||||
* | [SERVER] Make listen port configurable | Simon Rettberg | 2015-12-14 | 1 | -2/+7 |
| | |||||
* | [SERVER] Nullpad images virtually at runtime instead of padding the actual file | Simon Rettberg | 2015-12-10 | 1 | -1/+2 |
| | |||||
* | [SERVER] Add image ID for easier handling in RPC, export RID via RPC, make ↵ | Simon Rettberg | 2015-05-08 | 1 | -0/+1 |
| | | | | names of the byte count fields in RPC consistent | ||||
* | [SERVER] Added counters for received and sent bytes. | Stephan Schwaer | 2015-04-27 | 1 | -0/+2 |
| | |||||
* | Get rid of unneccessary volatile | Simon Rettberg | 2015-02-22 | 1 | -11/+11 |
| | | | | Some minor debugging code, mostly commented out | ||||
* | [SERVER] Use shared file handle for reading | Simon Rettberg | 2015-01-30 | 1 | -0/+1 |
| | |||||
* | [SERVER] Fix automatic proxying to use supplied connection; fix race ↵ | Simon Rettberg | 2015-01-27 | 1 | -1/+1 |
| | | | | condition in uplink_init | ||||
* | [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵ | Simon Rettberg | 2015-01-14 | 1 | -1/+1 |
| | | | | | | | compare and some unused params) Also allow newline at end of alt-servers file without complaining about it not being a valid alt server definition. | ||||
* | [SERVER] Get rid of epoll in alservers.c, make valgrind+gdb happy by ↵ | Simon Rettberg | 2015-01-06 | 1 | -1/+1 |
| | | | | handling signals even though we block them | ||||
* | [SERVER] Use a thread pool for client connections | Simon Rettberg | 2015-01-05 | 1 | -2/+0 |
| | |||||
* | [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵ | Simon Rettberg | 2014-12-31 | 1 | -11/+13 |
| | | | | function names | ||||
* | [SERVER] Add setting to enable/disable background replication, add comments ↵ | Simon Rettberg | 2014-12-29 | 1 | -0/+6 |
| | | | | to config and code | ||||
* | [SERVER] Improve replication and reconnecting behaviour | Simon Rettberg | 2014-12-22 | 1 | -1/+1 |
| | |||||
* | [SERVER] Configurable client timeout, adaptive replication speed (to be ↵ | Simon Rettberg | 2014-12-22 | 1 | -2/+8 |
| | | | | tested against varying bw/latency), retry sendfile call if ret <= len | ||||
* | Improve uplink handling, add code to debug thread creation/destruction, ↵ | Simon Rettberg | 2014-06-16 | 1 | -5/+5 |
| | | | | change stupid convention of freeDiskSpace returning 0 on error, which is ambiguous to the disk simply being full... | ||||
* | [SERVER] Automatic replication of images that are not complete on proxy. ↵ | Simon Rettberg | 2013-11-13 | 1 | -0/+2 |
| | | | | Speed probably needs tweaking for different link speeds etc. | ||||
* | [SERVER] Increase RTT check delay for uplinks that failed too many times to ↵ | Simon Rettberg | 2013-11-13 | 1 | -0/+1 |
| | | | | save network bandwidth | ||||
* | Merge branch 'simon' of dnbd3:dnbd3 into simon | Simon Rettberg | 2013-11-12 | 1 | -0/+5 |
|\ | | | | | | | | | Conflicts: src/server/altservers.c | ||||
| * | [SERVER] Minor tweaks here and there | Simon Rettberg | 2013-11-10 | 1 | -0/+5 |
| | | |||||
* | | [SERVER] Add "client only" flag for alt servers | Simon Rettberg | 2013-11-12 | 1 | -1/+1 |
|/ | |||||
* | aesfsrgdsr | Simon Rettberg | 2013-11-07 | 1 | -0/+5 |
| | |||||
* | [SERVER] More debugging, more safety checks, disable alt servers that fail ↵ | Simon Rettberg | 2013-09-16 | 1 | -1/+2 |
| | | | | too often | ||||
* | [SERVER] Copy CRC-32 list from uplink server if available | Simon Rettberg | 2013-08-28 | 1 | -2/+12 |
| | | | | | Split up helper.c, move file/disk related functions to fileutil.c Uplink: Make sure relayed requests are at least 1MiB | ||||
* | [SERVER] Improve proxy mode, implement integrity check in proxy mode | Simon Rettberg | 2013-08-12 | 1 | -0/+1 |
| | |||||
* | I'm stupid | Simon Rettberg | 2013-08-05 | 1 | -1/+1 |
| | |||||
* | [SERVER] Fix use-after-free, improve cleanup | Simon Rettberg | 2013-08-02 | 1 | -1/+1 |
| | |||||
* | [SERVER] several improvements | Simon Rettberg | 2013-08-02 | 1 | -0/+11 |
| | | | | | | 1) Close uplink if local copy is complete 2) Fix memleak when closing uplink (recv buffer was not cleared) 3) Add configurable artificial delays for client and server connections | ||||
* | [SERVER] Fix create_image() by adding fallback solutions for fallocate() | Simon Rettberg | 2013-08-01 | 1 | -0/+1 |
| | |||||
* | [SERVER] Add command line options to create empty image of certain size with ↵ | Simon Rettberg | 2013-08-01 | 1 | -1/+8 |
| | | | | empty cache map (so it needs an uplink server) | ||||
* | [SERVER] Uplink handing complete (untested, as alt servers can't be defined ↵ | Simon Rettberg | 2013-07-31 | 1 | -1/+2 |
| | | | | yet, so prepare for lots of fixes ;)) | ||||
* | [SERVER] Still working on the uplink... Almost there | sr | 2013-07-26 | 1 | -10/+14 |
| |