Giter Site home page Giter Site logo

cedar-microservice-libraries's Introduction

cedar-server-utils

Collection of utils shared by server components

Build Status

Questions

If you have questions about this repository, please subscribe to the CEDAR Developer Support mailing list. After subscribing, send messages to cedar-developers at lists.stanford.edu.

cedar-microservice-libraries's People

Contributors

beepsoft avatar egyedia avatar johardi avatar marcosmro avatar martinjoconnor avatar willrett avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

egyedia beepsoft

cedar-microservice-libraries's Issues

Optimizing Cypher queries

Many current queries are generating Cartesian product-type intermediate results and can run very slowly, particularly as content increases. Atti discovered that these queries (80ish of them) can be rewritten to avoid this, dramatically improving performance.

Support configuration of selective application logging

Currently, application logging is configured in the cedar-main.yml file as follows:

cache:
  persistent:
    connection:
      host: "${CEDAR_REDIS_PERSISTENT_HOST}"
      port: "${CEDAR_REDIS_PERSISTENT_PORT}"
      timeout: 2000
    queueNames:
      searchPermission: "CEDAR-QUEUE-search-permission"
      ncbiSubmission: "CEDAR-QUEUE-ncbi-submission"
      appLog: "CEDAR-QUEUE-app-log"
      valuerecommender: "CEDAR-QUEUE-valuerecommender"

There are four types of requests logged on the appLog queue: requestFilter, requestHandler, responseException, cypherQuery.

We would like to be able to selectively enable/disable these four types of app logging in the config file. Current suggestion is:

cache:
  persistent:
    connection:
      host: "${CEDAR_REDIS_PERSISTENT_HOST}"
      port: "${CEDAR_REDIS_PERSISTENT_PORT}"
      timeout: 2000
    queues:
      searchPermission: 
          queueName: "CEDAR-QUEUE-search-permission"
      ncbiSubmission: 
         queueName: "CEDAR-QUEUE-ncbi-submission"
      appLog: 
        queueName: "CEDAR-QUEUE-app-log"
        disabledAppLogTypes: 
           - "cypherQuery"
      valuerecommender: 
           queueName: "CEDAR-QUEUE-valuerecommender"

The above would disable Cypher query logging on the application log queue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.