Questions tagged [octopus]

Octopus is a framework for database sharding with Ruby on Rails' ActiveRecord.

From the README:

Octopus is a better way to do Database Sharding in ActiveRecord. Sharding allows multiple databases in the same rails application. While there are several projects that implement Sharding (e.g. DbCharmer, DataFabric, MultiDb), each project has its own limitations. The main goal of octopus project is to provide a better way of doing Database Sharding.

Octopus supports:

  • Sharding (with multiple shards, and grouped shards).
  • Replication (Master/slave support, with multiple slaves).
  • Moving data between shards with migrations.

Source code for Octopus is on github.

143 questions
1
vote
1 answer

Rails 7: switch to different databases

i am trying to connect to different databases in my script but i am getting ActiveRecord::ConnectionNotEstablished: No connection pool for 'ActiveRecord::Base' found for the 'main' shard. relevant code from database.yml is below test: primary: …
opensource-developer
  • 2,826
  • 4
  • 38
  • 88
1
vote
1 answer

Octopus Script to set Variable for use in ARM template Deployment

I have simple requirement that I can achieve in Azure DevOps and other release management systems but seems to be actively prevented in Octopus Deploy. I want to run an ARM Template deployment step using Parameter substitution. This is supported out…
LepardUK
  • 1,330
  • 1
  • 11
  • 17
1
vote
1 answer

Adding the Octopus build number to a project level variable

I have a project variable of {#ServiceVersion} in one of my config files and i need ot be able to set this to the octopus release number that's stored in the octopus variables. I've tried the basic PowerShell script that looks something like…
Bithellio
  • 23
  • 7
1
vote
1 answer

Structured variable replacement not working for web.config (XML)

Octopus Server 2021.1 I’m attempting to use the structured variable replacement feature to replace parts of a web.config (XML) file, but it only tries to read the read the file as Json and Yaml but not Xml. The variable is called the following:…
hamish
  • 447
  • 1
  • 9
  • 19
1
vote
0 answers

Azure DevOps deploy Angular app to IIS with Octopus

I'm trying to deploy a Angular application to my IIS server using Octopus and Azure DevOps My application has multiple environments, each environment with it's own settings (config.prod.json) What I want to do Basically Octopus should take the…
1
vote
1 answer

Azure DevOps - Package Application for Octopus: System.IO.IOException: The parameter is incorrect *

I'm trying to package my application into a zip file, in order to send it to Octopus. The log looks like this: 2021-05-17T21:15:00.8077153Z D:\a\r1\a>dotnet "C:\hostedtoolcache\windows\octo\7.4.3213\x64\/octo.dll" pack "--id=KFPortal" "--format=Zip"…
1
vote
1 answer

How to create NuGet package for AzureFunctions V2 to push to Octopus for deployment?

I want to create a Nuget package of my Azure functions V2 project so that i can push it to octopus for deployment. But I am facing issues, Currently I am using dotnet pack <.csproj> to package my code into .nupkg. If I use simple console .net core…
Bilal Shafqat
  • 689
  • 2
  • 14
  • 26
1
vote
1 answer

Starting Service through Octopus powershell fails for timeout

I want to deploy an application I built, and I am trying to start its through Octopus. This executable is just a .net application that uses Topshelf to run as windows service. However it's not a Windows Service itself as just said.. it's just an app…
Tarta
  • 1,729
  • 1
  • 29
  • 63
1
vote
1 answer

Download Octopus Variables from Project Library Sets

Can you please advise on how to download the Octopus variables set from Library in Octopus. The Project variables can be downloaded as JSON, but for the ones in Library set, there is no such option. Is the Octo tools the only option to export the…
Patty
  • 451
  • 1
  • 4
  • 11
1
vote
1 answer

TFS build step `Promote Project in Octopus` - variable for invoking build step if invoked by specific user

I'm trying to setup CD to staging for one of our apps. I have it set up to do the following: merge to master causes TFS Build and autodeploys to devlab build step kicks off e2e tests in tfs and runs tests against devlab IF e2e tests pass, I want…
1
vote
1 answer

What does "destination" means on Deployment "Remove Additional Files"

I want to replace the files whenever I deploy. Instead of replacing the existing ones, they just add up to the folder because each filenames are dynamically made. I came across this "Remove additional files" default false and could be a solution to…
ZQuiray
  • 131
  • 4
1
vote
2 answers

Configure connection string in Octopus Deploy per project

My connection strings are configured in Octopus Deploy through library/variables/LibraryVariableSets and all works fine based on the target environment, what I am going to do now is to create new db users for each project/app and set this UID/PWD in…
1
vote
0 answers

selenium browser launch by octopus

We have implemented a CI CD pipeline using octopus, once any code change is checked in then our automation script gets picked up and launches chrome browser. It tries to maximize the browser before starting test case. However octopus is not able to…
1
vote
1 answer

How to upload a release (package with substitued variables) to S3 in order to deploy it with codedeploy

I try to use AWS Code Deploy with autoscaling groups. In the past i was deploying with octopus and i want to migrate to aws. So, I have an Octopus Project with multiple steps. The first step deploys a cloudformation template which builds the…
1
vote
0 answers

How can I add read replication to a multi-tenant (Apartment) Rails App?

I have an existing, large Rails app, servicing customers. My predecessors used the Apartment gem to partition the business customers into separate DBs within MySQL (really, Aurora on AWS). They also started using Octopus to direct some of the DB…
1 2
3
9 10