Network Flooded with Queries

Several machines I run in the Yacy project have been crashing in this past week. It appears that someone is flooding the network with repeated queries, which makes JAVA max out the CPU cycles, leading to overheating, and unresponsive servers.

I was able to stop the machines from crashing, if I blocked certain IP addresses from making connections… not with Yacy settings, but at the server level.

Surely, some of you have been seeing this also. What do you think? What is the source of the queries? I am not 100% sure, but here is what I noticed.

Someone likes to often search for “yacy.space”.

Command used to search the logs:
grep --color=always -E 'yacy.space' ~/yacy/DATA/LOG/queries.log

What is this?

It looks like a useful tool, if it limits how many queries it sends to our network, to be reasonable, allowing machines to finish one query before starting another.

To see if it this is what is causing the crashes, I am temporarily blocking its IP address. It hides behind Cloudflare, making it difficult to find its direct IP address. But it is:

http://157.245.217.151:8090/

The command I am using to block it:
ufw deny from 157.245.217.151

I hate to block anyone, but the repeated server crashes have caused me to investigate. There could be other machines that are responsible for the query floods. (It looked similar to a DDoS attack.) I will continue to monitor it and see if blocking this specific IP address helps the machines stay online and stop crashing.

Hi,
I’m also flooded with query from that host and also found that https://yacy.space/ by getting forwarded from http://157.245.217.151

As I can see on my peer the problem is the amount of urls to be crawled as result of the seachresults is an issue.

I workaround by setting low limits at /SearchAccessRate_p.html.

Cu, sixcooler.

2 Likes

That was a good tip. I also now modified those settings and that should reduce the server load, if Yacy obeys it.

Before making that change, the searches for yacy.space continue, one after another…


Command used to search the logs:
grep -a --color=always -E 'q="yacy.space"' ~/yacy/DATA/LOG/yacy*.log

By sampling some of the IP addresses, the name ImpossibleSearch comes up repeatedly. I wonder if a cluster of peers send out the same query at the same time. I appreciate anyone adding peers, with good motives, to the network, but maybe these need to be configured so they do not flood the network with the same query. And why search for “yacy.space” anyway? What are they wanting to find?

One more change I am making… I wonder if Yacy will use less CPU power with this.

/ConfigProperties_p.html

remotesearch.maxload.rwi=4.0

Goal: prevent remote search requests if local system load average is above the specified value. Avoid overloading during high CPU usage.

yes - a great hint too!

I’ve no idea why someone searched for yacy.space, but the queries got requested from 157.245.217.151 as local search, which results in queries to other peers as remotesearch to extend the searchresult. That’s why you see the same query from other hosts.

I guess the operator of https//yacy.space already reacted on this post :slight_smile:
I see the Flag ‘resource=local’ now.

Having such a public portal like htts://yacy.space was discussed in the past. If I’m not wrong Orbiter set up a peer and promoted it as a demonstrator.
This one is not a peer, but a Host distributing the query and merging the result from requested peers.

1 Like

Well, then, welcome back yacy.space.

My firewall no longer blocks that IP address, as of now. We will watch and see.

I have a monitor program on one of my peers.
I’m receiving local searches and remote searches at the same time in bursts. However I dont have the yacy.space problem yet.
I have all the protection settings disabled or set to very high for testing.

My normal system load 100% CPU is equal to 24 and the the graph is plotting over 400+ for short period. The page is updated every 10 seconds. Its only a spike or someone plotting the response time.
The Ram usage (heap) goes to 95% so its ok for the moment.

Everything back to normal..

1 Like

Are you still running with what you stated in a previous post:
RAM: 384 GB ECC?

I have several machines, and the one that is crashing the most today has only RAM: 5.8 GiB.

I suppose the server needs more RAM as it accumulates more documents. Your set-up has 10 times more documents than the server I’m troubleshooting. I think it’s the bursts that is overwhelming the machines, causing OutOfMemory.

Your Mission Control Panel looks professional. :star:

Yes and am learning Proxmox now.

yes ok, so you have 8 GB in total?
I face similar problems when hiring a VM /droplet

Thanks I used AI to write the python program.

Your RAM amount should give you room to grow.

The VPS I am renting only has, I think, about 6GB RAM total.

I just reduced the amount given to Yacy, and lowered some other settings, in an attempt to prevent OutOfMemory errors.

1 Like

One thing I would fix is you have no swap file for OS.
This can cause hanging not having one.