Skip to end of banner
Go to start of banner

Investigate LDP Hosting Support

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

  • Organize conversation with hosting vendors to identify current offerings, concerns
  • Organize conversation with implementers about reporting platforms and hosting plans (blocked by Recruit from new institutions not represented)


Summary of conversation in Sys Ops & Management SIG

Best practices mentioned

  • general tips
    • follow the admin guide
    • production database is standalone Postgres VM with dedicated storage, only use it for FOLIO reporting
    • run all of the LDP processes as cron jobs on Kubernetes (have our own container for FOLIO analytics) ( I think this is TAMU specific )
    • => possible scheduling services: cron, Jenkins, Kubernets cronjob
    • ldp_add_columb.conf : to ensure that all of the derived tables exist in the reporting table. It helps that the tables can be build if the data are still absent.
  • periodic extraction of data 
    • LDP1, ldpmarc and folio-analytics need to be run on a schedule and in sequence. 
    • Once a day tends to be pretty good.
    • While it extracts the data, you wouldn't want to run queries against the reporting database because the data are being erased and then re-created.
    •  Daily incremental update is quite fast (10 minutes for Univ. Chicago)
  • performance
    • run with network proximity between the FOLIO and LDP databases 
  • backups / disaster recovery:
    • Q: What do you do for a postgres backup solution (for a production LDP), and what cadence to you do that on ?
    • A: some running on Amazon AWS, RDS Postgres services for hosting, including disaster recovery (7 days of snapshots)
    • A. some have local snapshots, up to 28 days ( => 7 days is enough, because LDP keeps history of the records internally, anyway. 28 days is a lot of data )
  • cloning
    • Q: When you clone FOLIO production environment, do you clone the LDP data over or do you build the LDP data back from the FOLIO data that you have cloned ?
           - A&M: We don't clone the data over, but we re-build it from scratch. Or, if I upgrade, I just upgrade the LDP . In that way it preserves the history.
           - A (Wayne): If we refresh the staging environment for a tenant, we will re-build LDP from scratch.
  • upgrades / testing
    • Q:  error checking and logging. Do testing and upgrades go together ? 
    • run two instances: staging and production
    • LDP1 and ldpmarc are both fairly independent of FOLIO releases, new versions come out on their own cadence
    • when there is a new version of LDP1 or ldpmarc, implement that in staging
    • if it's more than a point upgrade, might invite users to test
    • follow that with upgrade of production
    • An upgrade in LDP1 is really simple. You envoke the LDP server with an upgrade database command. Then LDP knows what verison it is talking to.      
    • For ldpmarc, there is not really an upgrade process. The release notes will tell you if you have to run a full upgrade.
    • review release notes for additional instructions about whether you need to run a full update
    • FOLIO Analytics is tied to FOLIO flower releases, so upgrade those together; include LDP1 in standard FOLIO testing. Apart from that, invite user to test only when folio-analytics tables have changed.
    • Do not upgrade LDP components until the next Flower Release of FOLIO. Except cases when you experience some problems. In that case, ask Nassib and then maybe install a new version.
    • for order of updates, might try LDP1, then ldpmarc, then derived tables (moved here from general section)
    •  Some have a special Jenkins job which creates a thing called the LDP engine. This engine includes all 3 components. They use a Docker image for all their setups for the Flower Release. When a new version of LDP comes, they build a new Docker image with the latest versions. Then they do a smoke test. If everything works fine, they create recommendations for the upcoming Flower Release. They use these until the next upcoming flower release.
  • logging
    • some use container log aggregation (CloudWatch, or Elastic), so the logs don't go away when the container goes away
    • some use FluentD/Rancher for logs, which then get pushed to Splunk; might need to log to standard error/out instead of to a file
    • probably a good idea to sent an alert for when the jobs fail, but could also check all manually each morning
  • security
    • Set up your network securely. Set up access to the reporting database securely. Secure (or pseudonomize) personally identifable information.
    • Apart from that, there are no security concerns !
    • Single-Sign on to database access is not supported. You have to use regular postgresql security. But that is more an integration problem than a security problem.
    • make sure the LDP IP address is only accessible from certain subnets
    • Kubernetes network is namespace isolated
    • set up users with read-only access, use those accounts for connections via tools like Cloud Beaver, then embed those tools in a VM that uses standard university permissions systems (e.g., SSO via Shibboleth); the different read-only user accounts can be granted permissions to just certain types of data, and different staff can be granted permission to use just the VM that matches the permissions they should have
    • "From a security standpoint, no, there isn't SSL all the way down to the schema, but we take care of that by controlling access. It is not exposed to the outside world. FOLIO has the same issue."
  • concerns
    • data transfer time gets longer if data in FOLIO increases.
    • you will need more resources in LDP if your production database grows.
    • Silent failures. You do not have a good and detailed logging. You never know what has happend.  (but good support by Nassib!).
    • Docemntatuon in LDP1 repo ist mostly oriented to developers. It is not easy to find information if you are not  good familiar with the system 
    • for ldpmarc, incremental update is quick, but full update can be pretty long
    • no automatic recovery; when process fails need to re-run manually
  • No labels