crawler icon indicating copy to clipboard operation
crawler copied to clipboard

How to crawler stop running?

Open RickyLau opened this issue 7 years ago • 10 comments

How to crawler stop running?

RickyLau avatar Oct 29 '17 04:10 RickyLau

working on it.

medcl avatar Dec 18 '17 01:12 medcl

After setting up GOPA, its in Start stage and no way to stop it. Also not sure if its indexing something

Jasmi77 avatar Jun 11 '18 20:06 Jasmi77

hi Medcl, i am so excited to find GOPA as it seems to be promising for internal site search that i am trying to build - however i can get it to work - can you please help ?

Jasmi77 avatar Jun 11 '18 22:06 Jasmi77

are you building from the source, or download from the lastest release? @Jasmi77

medcl avatar Jun 11 '18 22:06 medcl

@Jasmi77 the master branch is under heavy development, I suggest you download the v0.10 released package (https://github.com/infinitbyte/gopa/releases/tag/v0.10.0) and read this README https://github.com/infinitbyte/gopa/tree/v0.10.0,note this version only support SQLite as persist database(for tasks).

medcl avatar Jun 11 '18 22:06 medcl

Hi - I'm new to ElasticSearch and have been experimenting with Gopa. I'm also having trouble understanding how to 'stop' the crawler. I've pointed it at a dev version of our site, and it seems to find just over 100 documents, but continues to generate a lot of tasks. It seems to be continuously crawling the site over and over.

The site is fairly static, so what I would like to do is have Gopa crawl the site once, and then we can re-index as content is updated. Is it possible to configure Gopa to do that? Or to know when it has finished its initial crawl?

daveX99 avatar Jul 04 '18 22:07 daveX99

Hi, @daveX99 I am a little busy recently (the best excuse I've got :) ) , and regarding your question:

  1. About it generate a lot of tasks, can you check out the task API: http://localhost:8001/tasks/ to see what's inside, the crawler automatically follow all the links in your site, you can filter then in this config section: https://github.com/infinitbyte/gopa/blob/master/gopa.yml#L52

  2. This is easy, by default, Gopa will try to check the site for updates periodically , you can config this as well: https://github.com/infinitbyte/gopa/blob/master/gopa.yml#L183

medcl avatar Jul 05 '18 00:07 medcl

@medcl :

I'm sure you are busy, so I appreciate your quick response.

I played a bit with the parameters to limit the URLs and that fixed my problem.

There are some oddities in the links on the site I am indexing, and that was causing a weird recursion in gopa. Once I set the parameters under url_match_rule, must_not, contain to exclude this link, the indexing ran to completion, and all succeeded.

I will probably need to play with the configuration in gopa.yml some more to fine tune the indexing. Is there any documentation on how those keys/values work?

Thanks again, -dave.

daveX99 avatar Jul 05 '18 06:07 daveX99

the documents is a issue, and few tips of the configuration:

  1. There are two runners in the pipeline module, one is used to clean up the urls called checker, another one is used to fetch resource and parse the content and save to elasticsearch.
  2. These pipelines are dynamic build up from the configuration, a joint means a process step of the pipeline flow.
  3. Each joint has their own parameters, mostly can found in the example config.
  4. Regarding the speed of indexing, you may consider enlarger the max_go_routine parameter, which means how many concurrent tasks will be running.

medcl avatar Jul 05 '18 08:07 medcl

@medcl :

I will keep that in mind. I am still learning the basics of how all this fits together. At this point, I am able to index the site with gopa and get the data into elasticsearch. Indexing does not take more than a few minutes now.

If I have further questions, I will create a new question to the issue queue so that this one is not filled with off-topic issues.

Thanks again for your quick replies! -dave.

daveX99 avatar Jul 05 '18 15:07 daveX99