Post Syndicated from Talks at Google original https://www.youtube.com/watch?v=uXJQL2oDS_E
Yearly Archives: 2024
Run Kinesis Agent on Amazon ECS
Post Syndicated from Buddhike de Silva original https://aws.amazon.com/blogs/big-data/run-kinesis-agent-on-amazon-ecs/
Kinesis Agent is a standalone Java software application that offers a straightforward way to collect and send data to Amazon Kinesis Data Streams and Amazon Kinesis Data Firehose. The agent continuously monitors a set of files and sends new data to the desired destination. The agent handles file rotation, checkpointing, and retry upon failures. It delivers all of your data in a reliable, timely, and simple manner. It also emits Amazon CloudWatch metrics to help you better monitor and troubleshoot the streaming process.
This post describes the steps to send data from a containerized application to Kinesis Data Firehose using Kinesis Agent. More specifically, we show how to run Kinesis Agent as a sidecar container for an application running in Amazon Elastic Container Service (Amazon ECS). After the data is in Kinesis Data Firehose, it can be sent to any supported destination, such as Amazon Simple Storage Service (Amazon S3).
In order to present the key points required for this setup, we assume that you are familiar with Amazon ECS and working with containers. We also avoid the implementation details and packaging process of our test data generation application, referred to as the producer.
Solution overview
As depicted in the following figure, we configure a Kinesis Agent container as a sidecar that can read files created by the producer container. In this instance, the producer and Kinesis Agent containers share data via a bind mount in Amazon ECS.

Prerequisites
You should satisfy the following prerequisites for the successful completion of this task:
- Familiarity working with containers and Amazon ECS
- Docker Desktop installed
- The AWS Command Line Interface (AWS CLI) installed
- An ECS cluster
- An Amazon Elastic Container Registry (Amazon ECR) repository to store the Kinesis Agent container image
With these prerequisites in place, you can begin next step to package a Kinesis Agent and your desired agent configuration as a container in your local development machine.
Create a Kinesis Agent configuration file
We use the Kinesis Agent configuration file to configure the source and destination, among other data transfer settings. The following code uses the minimal configuration required to read the contents of files matching /var/log/producer/*.log and publish them to a Kinesis Data Firehose delivery stream called kinesis-agent-demo:
Create a container image for Kinesis Agent
To deploy Kinesis Agent as a sidecar in Amazon ECS, you first have to package it as a container image. The container must have Kinesis Agent, which and find binaries, and the Kinesis Agent configuration file that you prepared earlier. Its entry point must be configured using the start-aws-kinesis-agent script. This command is installed when you run the yum install aws-kinesis-agent step. The resulting Dockerfile should look as follows:
Run the docker build command to build this container:
After the image is built, it should be pushed to a container registry like Amazon ECR so that you can reference it in the next section.
Create an ECS task definition with Kinesis Agent and the application container
Now that you have Kinesis Agent packaged as a container image, you can use it in your ECS task definitions to run as sidecar. To do that, you create an ECS task definition with your application container (called producer) and Kinesis Agent container. All containers in a task definition are scheduled on the same container host and therefore can share resources such as bind mounts.
In the following sample container definition, we use a bind mount called logs_dir to share a directory between the producer container and kinesis-agent container.
You can use the following template as a starting point, but be sure to change taskRoleArn and executionRoleArn to valid IAM roles in your AWS account. In this instance, the IAM role used for taskRoleArn must have write permissions to Kinesis Data Firehose that you specified earlier in the agent.json file. Additionally, make sure that the ECR image paths and awslogs-region are modified as per your AWS account.
Register the task definition with the following command:
Run a new ECS task
Finally, you can run a new ECS task using the task definition you just created using the aws ecs run-task command. When the task is started, you should be able to see two containers running under that task on the Amazon ECS console.

Conclusion
This post showed how straightforward it is to run Kinesis Agent in a containerized environment. Although we used Amazon ECS as our container orchestration service in this post, you can use a Kinesis Agent container in other environments such as Amazon Elastic Kubernetes Service (Amazon EKS).
To learn more about using Kinesis Agent, refer to Writing to Amazon Kinesis Data Streams Using Kinesis Agent. For more information about Amazon ECS, refer to the Amazon ECS Developer Guide.
About the Author
Buddhike de Silva is a Senior Specialist Solutions Architect at Amazon Web Services. Buddhike helps customers run large scale streaming analytics workloads on AWS and make the best out of their cloud journey.
The Everything Fanless Home Server Firewall Router and NAS Appliance
Post Syndicated from Patrick Kennedy original https://www.servethehome.com/the-everything-fanless-home-server-firewall-router-and-nas-appliance-qotom-qnap-teamgroup/
This fanless server might have everything including an Intel Atom C3758, 4x SFP+ 10GbE, 2.5GbE, SSD slots, and external HDD connections
The post The Everything Fanless Home Server Firewall Router and NAS Appliance appeared first on ServeTheHome.
UK-Ultra: The Swiss Army Knife of Access Points!
Post Syndicated from Crosstalk Solutions original https://www.youtube.com/watch?v=b86qcy00aeQ
Sigma 70-200mm f/2.8 DG DN OS Sports – WORTH $1500???
Post Syndicated from Matt Granger original https://www.youtube.com/watch?v=Rjel72Cg8OU
It’s already here – first release of Home Assistant in 2024
Post Syndicated from BeardedTinker original https://www.youtube.com/watch?v=mTBRn_LZRNk
Security updates for Tuesday
Post Syndicated from corbet original https://lwn.net/Articles/956568/
Security updates have been issued by Red Hat (firefox and thunderbird), SUSE (gstreamer-plugins-bad, libssh2_org, and webkit2gtk3), and Ubuntu (firefox and thunderbird).
Comic for 2024.01.02 – Catholic Church Donation
Post Syndicated from Explosm.net original https://explosm.net/comics/catholic-church-donation
New Cyanide and Happiness Comic
THG Podcast: Terror in the Air
Post Syndicated from The History Guy: History Deserves to Be Remembered original https://www.youtube.com/watch?v=3Tuh0g5OQ7E
TikTok Editorial Analysis
Post Syndicated from Bruce Schneier original https://www.schneier.com/blog/archives/2024/01/tiktok-editorial-analysis.html
TikTok seems to be skewing things in the interests of the Chinese Communist Party. (This is a serious analysis, and the methodology looks sound.)
Conclusion: Substantial Differences in Hashtag Ratios Raise
Concerns about TikTok’s ImpartialityGiven the research above, we assess a strong possibility that content on TikTok is either amplified or suppressed based on its alignment with the interests of the Chinese Government. Future research should aim towards a more comprehensive analysis to determine the potential influence of TikTok on popular public narratives. This research should determine if and how TikTok might be utilized for furthering national/regional or international objectives of the Chinese Government.
Hands-on With Pure Storage FlashBlade S Hardware
Post Syndicated from Patrick Kennedy original https://www.servethehome.com/hands-on-with-pure-storage-s-flashblade-hardware/
We take a hands-on look inside the Pure Storage FlashBlade//S to see how it works and what makes it awesome
The post Hands-on With Pure Storage FlashBlade S Hardware appeared first on ServeTheHome.
#Fun and Real World Use of the #Kaiweets #Thermal #Camera – #Hashtag
Post Syndicated from digiblurDIY original https://www.youtube.com/watch?v=s_EcOAlF45g
Stable kernels 6.6.9 and 6.1.70
Post Syndicated from jake original https://lwn.net/Articles/956524/
Greg Kroah-Hartman has announced the release of the 6.6.9 and 6.1.70 stable kernels. As usual, they contain
important fixes throughout the kernel tree.
[$] The trouble with MAX_ORDER
Post Syndicated from corbet original https://lwn.net/Articles/956321/
One might not think that much could be said about a simple macro defining a
constant integer value. But the kernel is special, it seems. A change to
the definition of MAX_ORDER has had a number of follow-on effects,
and the task of cleaning up after this change is not done yet. So perhaps
a look at MAX_ORDER is in order.
Scribus 1.6.0 released
Post Syndicated from jake original https://lwn.net/Articles/956522/
Version 1.6.0 of the Scribus
desktop-publishing application has been released. The
list of new features is rather long and includes a user interface overhaul,
improvements for HiDPI screens, new scripting commands, lots of
typographical improvements and features, a new picture browser for
graphical asset management, support for more gradient types, and much more.
Scribus 1.6.0 is the long awaited release in the next stable series,
replacing 1.4.8 and development versions in the 1.5.x series. This version
has been in development for some years and contains thousands of
enhancements and fixes across all areas of the program. It has more
features, is faster, and is more stable.
Security updates for Monday
Post Syndicated from jake original https://lwn.net/Articles/956521/
Security updates have been issued by Debian (ansible, asterisk, cjson, firefox-esr, kernel, libde265, libreoffice, libspreadsheet-parseexcel-perl, php-guzzlehttp-psr7, thunderbird, tinyxml, and xerces-c), Fedora (podman-tui, proftpd, python-asyncssh, squid, and xerces-c), Mageia (libssh and proftpd), and SUSE (deepin-compressor, gnutls, gstreamer, libreoffice, opera, proftpd, and python-pip).
NASA and the Development of Air Traffic Control
Post Syndicated from The History Guy: History Deserves to Be Remembered original https://www.youtube.com/watch?v=ZAJ48cjVDUY
NVIDIA RTX 5000 Ada 32GB Workstation GPU Review
Post Syndicated from John Lee original https://www.servethehome.com/nvidia-rtx-5000-ada-32gb-workstation-gpu-review/
The NVIDIA RTX 5000 Ada has 32GB of ECC memory and a downright tame 250W TDP making it a solid high-end workstation GPU from NVIDIA
The post NVIDIA RTX 5000 Ada 32GB Workstation GPU Review appeared first on ServeTheHome.
Comic for 2024.01.01 – New Years 2024
Post Syndicated from Explosm.net original https://explosm.net/comics/new-years-2024
New Cyanide and Happiness Comic
2024
Post Syndicated from xkcd.com original https://xkcd.com/2875/
