https://codereview.appspot.com/269510043/diff/1/src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java File src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java (right): https://codereview.appspot.com/269510043/diff/1/src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java#newcode55 src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java:55: } overall looks great. I have two questions/suggestions though. ...
8 years, 6 months ago
(2015-10-19 19:31:41 UTC)
#2
https://codereview.appspot.com/269510043/diff/1/src/main/java/se/kth/crypt/se...
File src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java (right):
https://codereview.appspot.com/269510043/diff/1/src/main/java/se/kth/crypt/se...
src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java:55: }
overall looks great. I have two questions/suggestions though. Provided the node
is connected to a great amount of peer nodes this might take a lot of time:
could this maybe be made concurrent? Also we discussed this earlier but it might
be a good idea to exclude the first ping and calculate the average of the
following 2-3 pings since the first ping might be slower because of the openflow
switches.
Last but not least, you should consider setting a upper limit for the ping, i.e.
timeout in case the server is down (1-2 seconds should suffice).
Good advice. We can use the @Asynchronous <https://docs.oracle.com/javaee/6/tutorial/doc/gkkqg.html> annotation from javax.ejb.Asynchronous (that would require Java ...
8 years, 6 months ago
(2015-10-19 22:00:38 UTC)
#3
Good advice. We can use the @Asynchronous
<https://docs.oracle.com/javaee/6/tutorial/doc/gkkqg.html> annotation from
javax.ejb.Asynchronous (that would require Java EE 6)
On Mon, Oct 19, 2015 at 9:31 PM, <robert.erneborg@gmail.com> wrote:
>
>
>
https://codereview.appspot.com/269510043/diff/1/src/main/java/se/kth/crypt/se...
> File src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java
> (right):
>
>
>
https://codereview.appspot.com/269510043/diff/1/src/main/java/se/kth/crypt/se...
> src/main/java/se/kth/crypt/server/core/CryptScheduledTasks.java:55: }
> overall looks great. I have two questions/suggestions though. Provided
> the node is connected to a great amount of peer nodes this might take a
> lot of time: could this maybe be made concurrent? Also we discussed this
> earlier but it might be a good idea to exclude the first ping and
> calculate the average of the following 2-3 pings since the first ping
> might be slower because of the openflow switches.
>
> Last but not least, you should consider setting a upper limit for the
> ping, i.e. timeout in case the server is down (1-2 seconds should
> suffice).
>
> https://codereview.appspot.com/269510043/
>
Issue 269510043: Add updating node latency value to schedule tasks
Created 8 years, 6 months ago by bruce.yinhe.kth
Modified 8 years, 6 months ago
Reviewers: erneborg_kth.se, robert.erneborg, marcus.falgert
Base URL:
Comments: 2