mirrorchecker's People
mirrorchecker's Issues
Refactor logging to be none-blocking and optionally allow output to stdout/stderr
Two issues with the current logging:
- In order to better suite running under docker, it would be preferable to optionally allow the logs to go to stdout/stderr instead of the file, then it could be easily collected with the standard docker logging plugins.
- The current logging is blocking. Theoretically this could decrease performance. One solution might be facilitating asyncio.Queue as a logging queue. Needs more inspection.
Implement single mirror status function
currently, it returns nothing:
async def mirror(self, request):
return web.Response(text="single_mirror")
when using proxycommand, the proxied command process isn't killed properly
looks like it leaves [ssh] zombie processes
_send_scp function crashes when one of the directories does not exist
Allow defining a mirror site as whitelist when mirrors_file option is used
In yaml this should be working already.
Inspect if exception occurred in _aggr_files
Traceback (most recent call last):
File "mirror3.py", line 188, in _aggr_files
for url, timestamp in results:
TypeError: 'TimeoutError' object is not iterable
Fix graceful shutdown
- some of the shutdown methods aren't using await properly, leading to exceptions when instance is down.
- add signal handlers, which later would allow an external script to start/stop the service.
Refactor mirrorlist request/reply to allow arbitrary parameters
Currently the yaml configuration file has:
yum_mirror_request: 'yum/mirrorlist-ovirt-{version}-{dist}'
yum_suffix: 'ovirt-@VERSION@/rpm/@DIST@/'
This is redundant and confusing. Could be changed to:
mirror_request: 'yum/mirrorlist-ovirt-{version}-{dist}'
mirror_reply: 'ovirt-{version}/rpm/-{dist}'
So:
- it will use the same parameters in reply/response.
- it will allow arbitrary parameters handling(and remove the hardcoded dist/version)
Add an option to always include a mirror when serving the mirrorlist file
So the origin will always be included(or other sites for that matter).
This can be added as another option in the yaml file:
- mirror:
...
filter: False
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.