bcgov / NRPTI

Natural Resources Public Transparency Initiative
Apache License 2.0
5 stars 15 forks source link

Investigate issues for NRIS-EPD and NRIS-EMLI Importers #1261

Open Keegnan opened 1 month ago

Keegnan commented 1 month ago

Problem Description The imports are taking up to 19 hours. They are coming up with status failed and are not sure if the records are writing or not.

In order to (achieve some goal), (a system or persona) needs to (some action).

Solution Needs

Timebox

Outcome Details describing the outcome of the research

Additional Context

sggerard commented 1 month ago

I believe both EMLI & EPD are taking a long time and have a failed status due to problems with the NRISWS API. It appears that the API becomes slow and starts throwing 500 errors late at night/early morning. I was able to replicate these errors in postman at 9pm.

It likely doesn't help if both our TEST and PROD environments CRON jobs end up overlapping.

Additionally the EMLI integration isn't actually processing any records at the moment due to the inspection sub types changing which will be fixed in ticket #1238

Image

Image

Image

sggerard commented 1 month ago

Both Test and Prod show these errors only since replacing the COCOCOLA server with new hardware.

The main times these errors seem to occur is from 8-10pm and 3-7am.

Image

Image

sggerard commented 1 month ago

I have created a service desk ticket https://apps.nrs.gov.bc.ca/int/jira/servicedesk/customer/portal/1/SD-119888

sggerard commented 1 month ago

Kris Clarke has been investigating the issues raised in my ticket and has doubled the JVM memory of the NRIS-WS API. Will keep an eye on the logs and see if this has any performance improvement.

sggerard commented 1 month ago

After the memory increase we are no longer seeing any 500 errors!

Image