Comments (6)
Hi,
The container doesn't generate any traffic at all when it's idling. What are you using to report on the network traffic? It sounds like it's inaccurate.
You can see for yourself by connecting to the running container:
docker exec -it <name of icloudpd container> /bin/ash
then run
ps
This will show you all the processes that are running inside the container. You should only see the the following (during an idle period):
sync-icloud.sh
- My script that tells the system what commands to run and when
ash
- the shell that you're connected to
ps
- the command you have run to see what processes are running
sleep <nnnn>
- one of the commands invoked by my script to wait between synchronisation intervals.
If you run this while the container is synchronising, the sleep
command will be replaced by icloudpd
. If the container is sending an alert, it will be curl
If you want to look at traffic in real time, go back to your shell prompt and install a network monitoring tool:
apk add tcpdump
to see all tcp traffic going in and out of your network card type:
tcpdump -vv
This is the maximum logging level so it will generate huge amounts of data... if it sees anything at all (which it shouldn't until it synchronises). Press + C to exit. It should then display a summery showing no data was sent over the Ethernet adapter.
If doing this, you'll want to create the container with the syncrhronisation_delay variable set to 10
or 15
or something like that to give you enough time to get connected to the container, install the tcpdump
utility, and set it running before a synchronisation occurs. Otherwise the initial sync may have completed, and it will be in it's sleep
phase where you'll see nothing for however long your synchronisation_interval variable is set, which should be 6-12 hours.
Thanks.
from docker-icloudpd.
Hi,
Thanks for responding, in regards to where I obtained that information; as I use QNAP’s Container Station to create/run Icloudpd , it has a chart that shows each container’s network utilisation. And Icloudpd was going crazy. (Likely inaccurate but I thought it best to raise it)
I’d stopped the container, but will run it again later , so I can monitor it and see if I can do some reporting, I’m also going to install a network monitoring tool too - called netdata. (Have you heard of that ?)
from docker-icloudpd.
Is it not that Container Station is showing utilisation for the network that the container is attached to? So if you have 10 containers connected to the same network, it shows the utilisation for all 10 containers?
I've seen Netdata but not used it. I use both Zabbix/PRTG Network Monitor for monitoring all the infrastructure I look after.
from docker-icloudpd.
It’s my understanding that the ‘network usage’ chart is per-container.
To check, I’ve just run the system resource monitor alongside a running container, and the values are very different..
from docker-icloudpd.
I wouldn't pay much attention to it. Obtaining true network utilisation statistics on a per-container basis is not an easy task at all. It says as much in the documentation: https://docs.docker.com/config/containers/runmetrics/#network-metrics
It's probably showing cumulative totals. Does it reset to 0 when you restart the container and slowly climb the longer the container is on? Jumping up when the container is actively syncing?
The only you can be sure you're seeing accurate stats is if you have some sort of agent running inside the container that monitors traffic on a per-process basis. Just connect to the container and then install iptraf-ng:
apk add iptraf-ng
Run iptraf-ng from the command line and it will bring up a GUI with which you can interrogate the network traffic all you like. Connect to the server a second time and run the script a few times and watch what affect it has on the statistics in the other connection.
from docker-icloudpd.
Closing this off as I wasn't able to replicate it. Running network monitoring software inside the container shows no traffic whatsoever while script is not running.
from docker-icloudpd.
Related Issues (20)
- Synology does not auto-index HOT 2
- Occurs again, retry loop but cannot find icloud.com IP address HOT 3
- An error is reported using reauth.sh HOT 4
- iCloud Drive and Ubiquity support
- Remote MFA by telegram takes user name in the 6 digit code HOT 1
- Sync only Favourites HOT 1
- ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate HOT 1
- [BUG] Discord notification failed - token contains 'bark_device_key=' at the end HOT 1
- Debug logging partially persists when set to false HOT 4
- Cannot find icloud.com IP address (Unraid) HOT 4
- Errors on initialise ? HOT 3
- Group and Group id always reseted HOT 1
- Permission Denied HOT 2
- Failed check for new files files Failed to execute script 'icloudpd' due to unhandled exception! HOT 3
- Error: Invalid value for '-d' / '--directory': Path '/home/apps/iCloud' is not readable HOT 3
- Docker compose setup
- Telegram Bot has not been initialised or needs reinitialising HOT 2
- auto_delete not deleting photos HOT 4
- icloud.com.cn : Failed to download new files HOT 13
- Error debug - traceroute: bad address 'icloud.com.cn' HOT 1
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.
from docker-icloudpd.