Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4store crashes when the mapping counts generation job is executed #39

Open
mdorf opened this issue May 1, 2021 · 1 comment
Open

4store crashes when the mapping counts generation job is executed #39

mdorf opened this issue May 1, 2021 · 1 comment

Comments

@mdorf
Copy link
Member

mdorf commented May 1, 2021

When running the mapping counts generation script (either via the scheduled CRON job or via the on-demand script) against production 4store instance, the run never fully completes. 4store crashes at random points during the execution. This behavior is NOT reproducible in the Staging environment. In Staging, the job completes in 5.5 hours.

@jvendetti
Copy link
Member

jvendetti commented Feb 28, 2022

Wanted to add clarification here that the mapping counts generation job has been disabled in our production environment since late April, 2021. It wasn't immediately evident to me how to check this, so I'm documenting the steps here:

  1. SSH into the production parsing box
  2. Change to the ncbo-deployer user
  3. Navigate to /srv/ncbo/ncbo_cron/config

There's a config file in this directory called config.rb that overrides the enable_mapping_counts configuration and disables the job:

begin
  NcboCron.config do |config|
    ...
    # disable mappings count;  it makes 4store unsable in production
    config.enable_mapping_counts      = false
end

The above override takes precedence over this line of source code:

@settings.enable_mapping_counts ||= true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants