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

What is the correct configuration of asp.net mvc + angular 4 + TFS 2013 (XAML builds) + octopack?

Configuring deployment process for the project and facing some issues with packaging the output of msbuild to a nuget package with OctoPack. Have decided to get a feedback about the process, may be I'm doing something wrong. Preconditions: .net 4.6…
mlurker
  • 149
  • 2
  • 8
1
vote
1 answer

Octopus not sending reads to slave

I have the following configuration for a slave: octopus: replicated: true fully_replicated: true environments: - staging # - production staging: shards: slave1: host: database_ip username: <%=…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
1
vote
0 answers

load balancing using pgpool vs rails octopus?

Recently we thought of using Heroku postgres Follower/slave database for our read requests. Now I am confused between the below 2 approaches. Use octopus rails gem to load balance between various slaves/followers. Using pgpool for load balancing.…
Deepak Kumar Padhy
  • 4,128
  • 6
  • 43
  • 79
1
vote
2 answers

Octopus gem not working with active record relation

Recently we thought of using slave databases for few of our search / read operations . We do not have any plans to send all our read request to slaves. We just want to few of our search queries to hit to slave databases I tried almost all the…
Deepak Kumar Padhy
  • 4,128
  • 6
  • 43
  • 79
1
vote
2 answers

Teamcity + Octopus does not deploy correct exe file

We have a teamcity build server and deploy to Windows server using the octopus auto deploy. The local builds of the program are good, but the deployed exe does not reflect the changes. I can even see the committed code on BitBucket. I used DotPeek…
1
vote
1 answer

Octopus Package Application Step in TFS Build not picking up files in sub folders

Hi I am using Octopus Deploy Package Application step to package up my website I specified the Source Path, Output path etc just fine. If I do not specify the Include files it brings back everything in the folder structure as the package. But I only…
MicroMan
  • 1,988
  • 4
  • 32
  • 58
1
vote
1 answer

Microsoft.WindowsAzure.Storage.StorageException: Unable to connect to the remote server, when accessing a blob storage from octopus

When I keep creating different storage names(random names) and using the blob from octopus it is reassigned/reusing some IP address for each storage account and throwing the connection is actively refused. for every run, I delete the storage…
user6258895
  • 11
  • 1
  • 4
1
vote
1 answer

Octopus gem dynamically select shard for an associated model based on shard_id

We have a users table. Users have many listings. We'd like to shard the association model Listing such that all users stay on database "master" shard. Users will get a shard_id column and listings will be split into different databases "shard1",…
Homan
  • 25,618
  • 22
  • 70
  • 107
1
vote
1 answer

Read Octopus variables

I am new to octopus and have a bunch of steps. For each steps we have "Machine Roles". As part of the steps I have a script tasks/step and I wish to access the roles assigned to this step in the (powershell) script. How can I achieve this. I tried…
Immortal
  • 1,233
  • 4
  • 20
  • 47
1
vote
2 answers

Octopus - backup of current deployment folder

I want to make a backup of the DLL's and Web.Config's that are going to be replaced during the deployment, before they are replaced, so I can easily rollback in case the deployment fails. People say, "Just deploy the previous version using octopus",…
Miguel
  • 53
  • 7
1
vote
1 answer

Trigger automation test from Octopus

Problem : We have set of UI automated tests which I want to trigger on different environment manually from Octopus UI. Environment : .Net project, TFS integrated with Octopus Currently, based on each check-in automation tests are triggered in CI…
Santosh M
  • 115
  • 3
  • 16
1
vote
2 answers

Rails Postgresql replication via Octopus gem when in Development env

Apparently when using the Octopus gem to do Postgres replication everything should be plug and play. However I can't seem to find what I'm doing wrong. This is my config/shards.yml octopus: environments: - development replicated: true …
lllllll
  • 4,715
  • 6
  • 29
  • 42
1
vote
1 answer

Set Octopus parameter from PowerShell script

I'm working with Octopus and I need to add in one of my PowerShell scripts the chance to modify an Octopus Parameter (not Variable...). In few words, my website deploys in 2 folders, alternately, and I have to take a trace of this. My idea is to set…
1
vote
0 answers

Rails: making database replication model work with multiple database

I have a rails app using 2 databases (say DB1, DB2). Also the DB1 is replicated to DB3, DB2 to DB4. I am using octopus gem for replication i.e. all write operations are on DB1 and read operations from DB3. Following is my setting for…
Paritosh Singh
  • 6,288
  • 5
  • 37
  • 56
1
vote
1 answer

Sessions Table and Octopus gem

I'm having a problem with octopus replication. I use table-based sessions and when a user logs in the session is created in my master table but the next request tries to read session data from the slave db and it fails because the session data is…
Rocky
  • 57
  • 5