Let’s say we have an application inside docker image that connects to Apache Kafka on start and tries to publish a bunch of messages to topics. Now let’s imagine that you want to test your app locally and thus you’ve created a docker-compose.yml with Apache Kafka, Zookeeper, and your application...
Continue reading...docker
“No dockerHost given, no DOCKER_HOST environment variable” error in Ubuntu
I was struggling against an issue of: while trying to deploy a project to docker using docker-maven-plugin. Need to say that I’ve installed and created a docker-machine and then exported all related env‘s to the Ubuntu environment variables. Then I tried to execute the following maven goals using maven from...
Continue reading...Масштабирование NIO-потоков Reactor-Netty в docker-контейнере и getAvailableProcessors()
При подготовке использовались материалы статьи “CPU considerations for Java applications running in Docker and Kubernetes”, автор – Christopher Batey. Reactor-netty Как гласит Википедия, Netty – это неблокирующий, event-driven, клиент-серверный фреймворк для разработки сетевых Java-приложений. Reactor-Netty, в свою очередь – TCP/HTTP/UDP клиент /сервер, который использует Java Reactor поверх Netty. Для обеспечения...
Continue reading...