Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !1259

software/theia: Disable frontend forwarding from resilient clone

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Xavier Thompson requested to merge xavier_thompson/slapos:fix/theia_import_no_forwarding into master Sep 19, 2022
  • Overview 3
  • Commits 2
  • Pipelines 5
  • Changes 5

Until now, the resilient clone (theia1) also forwarded frontend requests from cloned embedded instances (e.g. ERP5) to the external master. This mirrored the request already sent from the main embedded instance in theia0. But since theia0 and theia1 belong to the same instance tree, from the point of view of the external master those two requests are the same.

So every time the backup instance was processed (once a day), there was a tug-of-war on this shared frontend, were theia1 would briefly overwrite its parameters to redirect to the cloned embedded instance, before thei0 would reprocess its embedded instance and tug the shared frontend back to the original embedded instance.

To fix this, frontend forwarding is now disabled for theia1. When the cloned embedded instance requests a frontend, the local proxy will now fall back to the harcoded default behavior of faking the frontend allocation by returning the original url. This allows the cloned embedded instance to instantiate normally while keeping it fully isolated.

Edited Sep 21, 2022 by Xavier Thompson
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/theia_import_no_forwarding
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7