This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

quinta-feira, 9 de fevereiro de 2023

https://geekflare.com/open-source-load-balancer/

 

10 Open Source Load Balancer for HA and Improved Performance

load balancer 1
Invicti Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based Scanning™.

One of the quickest and easiest ways to set up an application with high availability and improve performance is to implement the load balancer (LB).

At a high level, there are three types of load balancers.

  • Hardware-based
  • Cloud-based
  • Software-based

A hardware load balancer is a dedicated appliance to provide load distribution and its relevant features. Some of the popular LB hardware vendors are:

  • F5
  • TP-Link
  • Barracuda

They are expensive but give you full control.

Cloud load balancer is trending more than ever.

Using cloud LB is one of the affordable ways to enjoy full features without investing in a hardware appliance. You pay for what you use. The following are some of the known cloud LB.

You can get it started from as low as $20 per month.

And the last one is software-based where you install, manage and configure LB software by yourself. This can be either commercial or open-source/free.

If you don’t have a budget or would like to explore a free solution load balancer then below will help you.

Seesaw

Used by Google, a reliable Linux-based virtual load balancer server to provide necessary load distribution in the same network.

Seesaw is developed in the Go language and works well on Ubuntu/Debian distro. It supports anycast, and DSR (direct server return), and requires two Seesaw nodes. They can be either physical or virtual.

Worth mentioning that Seesaw works with layer four networks, so if you are looking for layer seven load balancing then you may want to explore other options.

KEMP

A FREE advanced application delivery controller by KEMP is supported on all major hypervisors. You can either download and use it in your data center or deploy it in cloud DC like AWS or Azure.

YouTube video

It’s free but offers a commercial level of features including those below.

  • Layer 4 load balancing for TCP/UDP using round-robin or least connection algorithms
  • Layer 7 balancing
  • Integrate a web application firewall (WAF)
  • Inbuilt intrusion prevention engine (IPS)
  • True global server load balancing, supports multi-site
  • Caching, content compression, content switching
  • Web cookie persistence
  • IPSec tunneling
  • Pre-authentication
  • Let’s encrypt
  • Kubernetes

KEMP LB is used by some of the big brands like Apple, Sony, JP Morgan, Audi, Hyundai, etc. The free edition provides sufficient features; however, if you need more, you can check out their commercial license.

If you or your organization decide to explore KEMP LB and need some online training, then you can refer to this online course by Mike Walton.

HAProxy

One of the popular ones out there in the market is to provide high availability, proxy, TCP/HTTP load-balancing. HAProxy is used by some of the reputed brands in the world, like below.

  • Airbnb
  • GitHub
  • Imgur
  • Reddit

Some of the worth mentioning features are.

  • Support IPv6 and UNIX socket
  • Deflate & Gzip compression
  • Health-check
  • Source-based session stickiness
  • Inbuilt statistics reporting (checkout demo)

As you may expect HAProxy got enterprise edition, hardware & virtual appliance.

haproxy

The best way to know about HAProxy is to try them. Community Edition comes with tons of features, and they are FREE anyway.

ZEVENET

Zevenet support L3, L4, and L7. It’s available as source code, IOS image, and in a docker repository.

zevenet

It supports advanced health-check monitoring, so faulty servers/services are out of operation quickly to provide a seamless user experience. Zevenet formerly known as Zen works well with a TCP-based protocol like FTP, SIP, SSL, HTTP, etc.

If you are looking for Zevenet hosting then you may try Kamatera.

Neutrino

Neutrino is used by eBay and built using Scala & Netty. It supports least-connection and round-robin algorithms with the following switching features.

  • Using canonical names
  • Context-based
  • L4 using TCP port numbers
neutrino

Neutrino is tested to handle 300+ requests per seconds throughput on 2-core VM. If you are comparing with HAProxy, then one major advantage of using Neutrino is L7 switching.

But as always, try both and see what works best for your environment.

Balance

Balance by In lab networks is a TCP proxy round-robin LB that supports IPv6 on the listening side. This means you can have IPv4 on the front end and IPv6 on the back end.

It got all the basic LB features.

Pen

Pen is tested on Linux, FreeBSD, HP-UX, Solaris, and Windows but no reason it shouldn’t work on another Unix distro. It supports UDP and TCP-based protocols like HTTP, SNMP, DNS, etc.

Some of the features include the following along with the basic ones.

  • GeoIP filter
  • SSL termination
  • IPv4 & IPv6 compatibility

Nginx

I know what you might be thinking. Nginx is a web server, proxy server, etc. But open-source Nginx does support a basic level of content switching & request routing distribution across multiple servers.

However, the Nginx Plus edition is much more than that.

nginx-lb

Nginx Plus is an all-in-one web application delivery solution including load balancing, content caching, web server, WAF, monitoring, etc. It provides a high-performance load balancer solution to scale applications to serve millions of requests per second.

Traefik

A modern and fast HTTP reserve proxy and LB built with GO. Traefik support multiple back-end services Amazon ECS, Docker, Kubernetes, Rancher, etc.

traefik

It supports WebSockets, HTTP/2, auto SSL certificate renewal with Let’s encrypt, clean interface to manage and monitor the resources.

Gobetween

Gobetween is a minimalistic yet powerful high-performance L4 TCP, TLS & UDP-based load balancer.

gobetween-lb

It works on multiple platforms like Windows, Linux, Docker, Darwin and if interested you can build from source code. Balancing is done based on the following algorithms you choose in the configuration.

  • IP hash
  • World-famous – round-robin
  • Least bandwidth
  • Least connection
  • Weight

Based on this benchmark, Go-between is faster than HAProxy but not from Nginx.

gobetween-benchmark

If you are looking for a modern L4 balancing solution with auto-discovery for the dynamic environment, then Go-between seems promising. Give it a try to see how it goes.

Conclusion

I hope the above-listed open-source load balancer software helps you to choose one for your application. They are all FREE, so the best way to find what works is by trying them.

If you are looking to learn new skills then try Udemy, where thousands of video courses are available.

quinta-feira, 26 de janeiro de 2023

Windows - OneDrive Error 0x80071129 (este procedimento funcionou comigo)

 


OneDrive errors can be quickly tackled thanks to our solutions below


  • Error 0x80071129 often arises because of a corrupted OneDrive cache or On-Demand junction file.
  • Some users have confirmed running a disk scan can fix OneDrive error 0x80071129.
  • As an alternative, you can also find the exact steps that will help you reset OneDrive to fix this dreaded error.


OneDrive is the default cloud storage app that comes with Windows 11/10. That app has an On-Demand sync feature that enables users to view and access files within their OneDrive cloud without downloading them.

However, some users have reported a OneDrive 0x80071129 error arising when they try to move, copy, or extract files and apply folder properties with the On-Demand feature enabled.

That error displays the reparse point buffer is invalid message shown directly below when it arises. Users can’t carry out OneDrive file or folder actions whenever that issue occurs.

The error 0x80071129 message

You might be able to fix OneDrive error 0x80071129 with the resolutions outlined below.

What causes OneDrive error 0x80071129?

The first most probable cause for error 0x80071129 is a corrupted cache. OneDrive’s cache might include some corrupted temporary files. Clearing that cache by resetting OneDrive would then be a likely solution.

The 0x80071129 error message’s description says The tag present in the reparse point buffer is invalid. To put that in clearer English, that description highlights that OneDrive has some corrupted (damaged) On-Demand junction files. CHKDSK scans can fix OneDrive’s junction files.

How can I fix OneDrive error 0x80071129?

1. Run a CHKDSK scan

  1. Open your Start menu, click in the search box, and type cmd there to search for the Command Prompt. Launch it with elevated rights by clicking Run as administrator for its search result.
    Run as administrator option error 0x80071129
  2. To run a Check Disk scan, type in this CHKDSK command and press Enter:chkdsk /r /f
    The chkdsk command error 0x80071129
  3. Press the Y keyboard key to schedule the scan.
  4. Press the Power Start menu button, and click the Restart option.
    Restart option error 0x80071129

2. Scan system files

  1. Open Command Prompt as specified in steps one and two of the previous resolution.
  2. First, input the following text in the Command Prompt:DISM.exe /Online /Cleanup-image /Restorehealth
    Deployment Image scan command error 0x80071129
  3. Press Enter to initiate the command.
  4. Input this SFC command and press Enter:sfc /scannow
    The System File Checker scan error 0x80071129
  5. The SFC scan will take a while. Make sure you wait until the scan is fully completed before closing the Command Prompt.

Restoring your system to a previous state can fix a number of system issues. A simpler way to safely restore your system is using a specialized tool that can do all the work for you.


3. Reset the OneDrive app

  1. Bring up the Command Prompt’s window (again as covered in resolution one).
  2. Run this reset command and press Enter:%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
    Reset OneDrive command error 0x80071129
  3. If OneDrive doesn’t automatically restart, type in this text and hit Enter:%localappdata%\Microsoft\OneDrive\onedrive.exe
    Start OneDrive command error 0x80071129
  4. Some users might need to input a modified reset command. If the command specified above returns a Windows cannot find message, try entering these modified commands:C:\Program Files\Microsoft OneDrive\onedrive.exe /reset C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset

There aren’t that many possible fixes for the OneDrive error 0x80071129. However, many users have confirmed in forums they’ve been able to fix that issue with the resolutions above. So, you might not need any other potential resolutions to resolve error 0x80071129.

However, reinstalling Microsoft OneDrive might also be worth a try. Doing so will completely reset the app’s settings.

Microsoft’s Reinstall OneDrive app page provides instructions for how you can reinstall that cloud storage app.

Have you discovered any other way to fix error 0x80071129? If so, let us know about it in the comments section below. You can also add any questions about the OneDrive error 0x80071129 there.



fonte: https://windowsreport.com/error-0x80071129/

é cheio de propaganda no site oficial mas tirando isto, o procedimento até que funciona. 



segunda-feira, 2 de janeiro de 2023

Powershell - How can I inject a newline by replacement with this script? (excelente explicação)

 You can put enter image description here in place of the space between the replacement string where you want the newline (CRLF) to be placed to get the expected result—backtick "r" backtick "n" (see below).

This only requires that one small change to the existing script and it'll work as expected per your description and example output results.


Script

@echo off
setlocal enableextensions disabledelayedexpansion

set search=Old string
set replace=New`r`nstring
set textFile=Test.txt

:PowerShell
SET PSScript=%temp%\~tmpStrRplc.ps1
ECHO (Get-Content "%~dp0%textFile%").replace("%search%", "%replace%") ^| Set-Content "%~dp0%textFile%">"%PSScript%"

SET PowerShellDir=C:\Windows\System32\WindowsPowerShell\v1.0
CD /D "%PowerShellDir%"
Powershell -ExecutionPolicy Bypass -Command "& '%PSScript%'"
PAUSE
EXIT

Note: Be sure to not put any spaces between the two strings in the replace= variable to ensure there is no trailing or leading spaces in the new string with the newline as you need.

enter image description here


Results

Before

Old string

After

New
String

Further Resources



fonte: https://superuser.com/questions/1298701/how-can-i-inject-a-newline-by-replacement-with-this-script