Comments (6)
@drozdowsky: for my example of database connections, I did exactly that. I spent a half hour yesterday throwing together a windows service that responds to simple commands over the network. Now my init
command for each data point is nc 127.0.0.1 1234
, and they all reuse the same database connections.
While this definitely improves things for my company's database servers, it just moves the issue to my local system. Now I have 15 instances of sh -c $localconnection
and 15 instances of nc 127.0.0.1 1234
running on my system.
from sampler.
very much already a thing: https://github.com/sqshq/sampler#variables
from sampler.
@Asherslab this just reuses the command path and arguments, it doesn't reuse the same instance of the init application. In the example I gave, showing both CPU load and RAM use, using a variable for init
still causes two instances of the command to be run, in my case causing two separate connections to the same database server.
from sampler.
Currently using sampler and I agree that global init looks like a must.
But.
Do we really have to have it in sampler? I think this can also can be handled by script/other app (that keeps session)
from sampler.
true we could have it elsewhere. but having it in sampler would be nice
i'm sure adding a simple boolean to the variables part to share the same "session" would work fine
from sampler.
i agree with you.
usually i monitoring database status with some SELECT cmd, in most situation it is sufficient to create one DB connection, otherwise it will result resourses wasting.
from sampler.
Related Issues (20)
- Sampler freezes after spawing a lot of processes (on server)
- Feature request: Dynamic items or Dictionnary items
- Variables unavailable in trigger conditions HOT 2
- Why $label rotation in conditions? HOT 3
- Failed to parse a number HOT 1
- Possibility to use deltas between samples
- Macos ssh pty error HOT 8
- Strange behavior on asciiboxes > sample command not well interpreted (bad yaml ?) HOT 1
- :grey_question: Layout question (jq | column) inside textboxes (deal with t ad \t)
- wrong results of sample commands
- Conditional color for textbox
- textbox keeps previous output after getting empty result from jq
- 500th fork!
- Configuration Error Ubuntu 21.10 HOT 1
- how to show two digit number in windows? HOT 1
- Can no longer compile from Source - Missing oto HOT 2
- Vulnerability of dependency "gopkg.in/yaml.v3"
- windows textboxes newline not working
- Paycode
- Cmder: bad link on website HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sampler.