sim: random preferred content expression generation
This commit is contained in:
parent
ee3d6502bb
commit
4ed58d7894
4 changed files with 94 additions and 23 deletions
|
@ -319,6 +319,24 @@ as passed to "git annex sim" while a simulation is running.
|
|||
Configure the groupwanted expression. This is equivilant to
|
||||
[[git-annex-groupwanted]](1).
|
||||
|
||||
* `randomwanted repo term...`
|
||||
|
||||
Configure the preferred content of a repository to a random expression
|
||||
generated by combining a random selection of the provided terms with
|
||||
"and", "or", and "not".
|
||||
|
||||
For example, "randomwanted foo exclude=*.x include=*.x largerthan=100kb"
|
||||
might generate an expression of "exclude=*.x or not largerthan=100kb and include=*.x"
|
||||
or it might generate an expression of "include=*.x and exclude=*.x"
|
||||
|
||||
* `randomrequired repo term...`
|
||||
|
||||
Configure the required content of a repository to a random expression.
|
||||
|
||||
* `randomgroupwanted group term...`
|
||||
|
||||
Configure the groupwanted to a random expression.
|
||||
|
||||
* `maxsize repo size`
|
||||
|
||||
Configure the maximum size of a repository. This is equivilant to
|
||||
|
|
|
@ -61,17 +61,24 @@ Planned schedule of work:
|
|||
which foo is accessing via a gateway:
|
||||
|
||||
connect node1 <-g- foo -g-> node2
|
||||
connect node1 <-g- bar -g-> node2
|
||||
|
||||
What that would do is, for every change in foo's location log for node1
|
||||
or node2, immediately propagate it to bar's location log.
|
||||
|
||||
Or an alternative syntax:
|
||||
|
||||
cluster g node1 node2
|
||||
connect g-node1 <- foo -> g-node2
|
||||
connect g-node1 <- bar -> g-node2
|
||||
|
||||
The only thing that does not allow simulating is 2 cluster gateways
|
||||
that each proxy for some of the same nodes. In that situation, there
|
||||
are two views of the contents of the nodes, which is simular to two
|
||||
are two views of the contents of the nodes, which is similar to two
|
||||
clients having direct connections to the nodes, but not the same when
|
||||
there are more than 2 clients connected to the 2 gateways.
|
||||
|
||||
* sim: Set a random preferred content expression. Rather than generating a
|
||||
fully random expression, it would probably be most useful to take a set
|
||||
of terms and build an expression that randomly combines them with
|
||||
and/or/not and parens.
|
||||
there are more than 2 clients connected to the 2 gateways. Simulating
|
||||
that would require a first-class gateway simulation with its own location
|
||||
log and node selection.
|
||||
|
||||
* sim: Add support for metadata, so preferred content that matches on it
|
||||
will work
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue