Comments (7)
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.77. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
from cloudwatchlogs-ros1.
Hi @CycleMark!
Few questions on your setup:
- What does your configuration look like?
- Do you have multiple robots and are you using the same account for them?
- Are you batching requests at all? Take a look at this AWS article which can give you some insight into why you're being throttled.
from cloudwatchlogs-ros1.
HI,
Sorry for the late reply - I didn't see the notification.
Config at the moment it just one testbed robot.
yaml config file is pasted below - but it looks okay to me. Batching should be every couple of minutes.
Kind Regards
Mark
mxnet_cloudwatch_logger_application.yaml
# the frequency to send a batch of logs to CloudWatch Logs in the log group and log stream specified
# e.g. publish a batch of logs every 6 seconds
# publish_frequency: 6.0
# default value is: 5.0 seconds
publish_frequency: 120.0
# whether to subscribe to the rosout_agg topic to get logs
# default value is: true
sub_to_rosout: true
# other topics to subscribe to get logs
# e.g. subscribe to two topics, one is named topic1, the other is named topic2
# topics: ['topic1', 'topic2']
# default value is: empty list
topics: []
# list of node names to ignore logs from
# e.g. To ignore all logs from a node named 'Talker' you would use the following configuration:
# ignore_nodes: ["/Talker"]
ignore_nodes: ["/cloudwatch_logger", "/cloudwatch_metrics_collector"]
# min_log_verbosity: INFO
# default value is: DEBUG == logs of all log verbosity levels get sent to CloudWatch Logs
min_log_verbosity: INFO
# The absolute path to a folder that all offline logs will be stored in
storage_directory: "~/.ros/cwlogs/"
# The maximum size of all files in offline storage in KB
storage_limit: 1048576
# This is the AWS Client Configuration used by the AWS service client in the Node. If given the node will load the
# provided configuration when initializing the client.
aws_client_configuration:
# in an aws account, you can switch to a different region using the drop-down on the upper right corner
# logs sent to CloudWatch Logs will appear in the region indicated below
# default value is: "us-west-2"
region: "eu-west-2"
# Values that determine the length of time, in milliseconds, to wait before timing out a request. You can increase
# this value if you need to transfer large files, such as in Amazon S3 or Amazon CloudFront.
connect_timeout_ms: 2000
request_timeout_ms: 2000
# The retry strategy used when connection requests are attempted. If set to true then requests
# will fail fast, otherwise will use an exponential retry algorithm defined by the AWS SDK.
no_retry_strategy: false
from cloudwatchlogs-ros1.
@CycleMark what are the contents of the folder ~/.ros/cwlogs/
?
from cloudwatchlogs-ros1.
@CycleMark any update? Sorry for the delay: we are actively looking at this issue.
from cloudwatchlogs-ros1.
@CycleMark hello!
First, another question for our education - which ROS distribution are you running on? Melodic, Kinetic?
To your issue, our current best guess is that the robot lost its connection to the network for some amount of time, and while it was offline logs were stored to disk to be uploaded later. When it came back online, the backed up logs were published too quickly and hit the API limit. The size of these requests is determined by the file_upload_batch_size
parameter, which defaults to 50. We believe your problem may be mitigated by increasing this value to something like 500.
Meanwhile we are working on introducing a mechanism to rate-limit this "offline catch-up" case.
Any extra context to help us understand if this is actually the case you've run into would help us solve your problem more effectively.
from cloudwatchlogs-ros1.
We've closed this issue through aws-robotics/cloudwatch-common#61, which limits the rate that cloudwatch logs may be uploaded - preventing hitting the throttling exception.
We will be bloom-releasing a new version 1.1.5 of cloudwatch-common shortly, which will make it into relevant distributions in the next sync.
If there is any remaining issue, please feel free to reopen this or open a new ticket.
from cloudwatchlogs-ros1.
Related Issues (18)
- CloudWatcher Failing To Start HOT 6
- Possible to send logs by Node HOT 6
- Can't start CW Log node - authentication issues HOT 2
- Support std_msgs/String as logging message to CloudWatch
- CloudWatch Logger node generating a lot of logging info HOT 5
- AWS CW API Throttle Issue HOT 13
- cloudwatch_logger node not working HOT 5
- Test
- Logger fails to authenticate using config file, but works with envars HOT 7
- add diagnostics support HOT 3
- Ensure Log Batch Doesn't Span More Than 24 Hours HOT 7
- Build Issue HOT 4
- Feature Flag to turn off topic listing for a node HOT 4
- AWS RoboMaker Notice HOT 1
- Request cannot span more than 24 hours Error HOT 15
- Integration with CloudWatch Insights HOT 6
- Issue Building Cloudwatch_Logger HOT 2
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 cloudwatchlogs-ros1.