要点总结:
1、文件分发到agent后,会缓存。下次分发时,只分发变更的文件。
2、测试启动时,默认文件分发是成功的。(可能第一次不会这样)
3、测试启动时,文件分发是异步的。
4、可以选择“安全文件”分发。这样每次保证文件的正确性,但是很慢。
5、当文件大于10MB的时候,会自动激活“安全文件”策略。
http://ngrinder.642.n7.nabble.com/Agent-caching-of-JARs-resources-etc-in-file-system-td913.html
The files starts to be synchronized just after a test is started.
It can increase the test starting time.(maybe 1~50 sec... to guarantee that the file distribution is successful. ) We think this start time latency reduced the usability of ngrinder(nGrinder took much time to start test in prior to 3.1 version). So we decide to modify the distribution logic. When a test is started, It just invokes the asynchronous distribution .. and it just "believes" that file distribution is successful and just start the test.
在ngrinder启动test后,开始distribute file到agent。这会导致启动时间增加