network-shares

How to config elasticsearch cluster on one server to get the best performace on search

放肆的年华 提交于 2019-12-30 11:55:16
问题 I am new to elasticsearch. I have an Elasticsearch index of about 300,000 items. For each of the 60 million records in another table, I need to make a complex query to this ES index. Right now, it is extremely slow (making 1000 queries would take 200 seconds). I need advice on how to configure my elasticsearch cluster to handle a large volume of queries. My server: 8 core 8GB ram SSD Hardware I want to config elasticsearch to handle 1000 concurrent search requests from ruby. (I want to search

Create Network Share with permissions

无人久伴 提交于 2019-12-23 04:26:11
问题 I didn't find any good info or library on the inet, about how to create a network share and set permission for a local group. I'm using c# and Windows Server 2008. Does anyone have some good resources or sample to point me in the right direction? 回答1: You can use Pinvoke or WMI, there is a very nice article on this on Code Project: How to create a file share using .NET framework the key of the whole thing is the following Windows API: [DllImport("Netapi32.dll")] public static extern int

System Error 53 when mounting a network drive

给你一囗甜甜゛ 提交于 2019-12-13 16:04:26
问题 Hi everyone first time posting, looking for a review of a batch file that I can't get to work correctly: @echo Mounting ServerName as local drive net use M: \\ServerName\"R Share" @echo Clearing IE Cache taskkill /im iexplore.exe /f M:\"R Share"\PSExec\psexec.exe -l c:\windows\system32\RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 @echo Removing ServerName @net use M: /delete @echo IE Cleared @pause The point of the script is to mount a share as a drive, close any open IE windows, then

UWP how to show image from a network directory

[亡魂溺海] 提交于 2019-12-12 22:28:27
问题 I have tried many ways to set image source to a network directory in my UWP application. For example I have tried this example: BitmapImage bitmap = new BitmapImage(new Uri(@"\\venera\Mariner\747\03_WEDNESDAY\003\00 Flat B -\APR3783216-MED-BLK TAPE-GB-Apron.jpg")); UserImage.Source = bitmap; and bitmap.UriSource = new Uri(@"\\venera\Mariner\747\03_WEDNESDAY\003\00 Flat B -\APR3783216-MED-BLK TAPE-GB-Apron.jpg", UriKind.Absolute); UserImage.Source = bitmap; But none of them works. I ended up

Win32: API calls to list available network shares on a server?

一世执手 提交于 2019-12-10 10:38:59
问题 Assume I have access to a SMB server at IP 1.2.3.4, how can I determine the list of available shares? Windows Explorer can do it when I enter a UNC path \\1.2.3.4\ - but command prompt "dir \\1.2.3.4\" fails! I've tried the usual FindFirstFile/FindNext calls - which I use successfully to read the files and directories on each share, but they don't work directly on the server root. Ideally, I need something that works for XP onwards. Edit: I want to do this programatically, rather than from

Deleting Desktop Shortcuts Associated With Network Drives?

不羁岁月 提交于 2019-12-08 03:20:33
问题 I've been working to clean up a messy Active Directory as well as a network file system in the same state and I understand the concept of mapping users network drives and currently use a combination of batch and vbs files to do so. However, I need to start fresh and was wondering if there was any way to detect and delete the users shortcuts on their desktop associated with the previous network drives. (Yes - I understand how to delete all of the network drives, but: How do I detect and delete

Win32: API calls to list available network shares on a server?

青春壹個敷衍的年華 提交于 2019-12-06 06:17:37
Assume I have access to a SMB server at IP 1.2.3.4, how can I determine the list of available shares? Windows Explorer can do it when I enter a UNC path \\1.2.3.4\ - but command prompt "dir \\1.2.3.4\" fails! I've tried the usual FindFirstFile/FindNext calls - which I use successfully to read the files and directories on each share, but they don't work directly on the server root. Ideally, I need something that works for XP onwards. Edit: I want to do this programatically, rather than from command line. Redirecting and parsing the output from 'net view 1.2.3.4' would work, but I'm ideally

File.Exists returning false from a network share

浪子不回头ぞ 提交于 2019-11-27 14:50:47
I've been working on a ASP.NET project that is going to save uploaded files to a network share. I figured I could just use a virtual directory and be fine, but I have been struggling with permissions for Directory.CreateDirectory. I was able to upload files so I decided to change my code to place everything in a single directory, however this requires me to make use of File.Exists to avoid overwriting duplicates. Now that I have all my code updated, I have discovered that no matter what I do, File.Exists always returns false (The file definitely exists) when I test against the network share.

Access network share from within VBScript eg FileSystemObject

て烟熏妆下的殇ゞ 提交于 2019-11-27 03:51:32
Is there a good way to access network shares from within a VBS script, with alternative credentials (not the credentials with which the VBS script is running)? The intention is to perform two tasks: programmatically navigate a remote share file structure, in order to confirm that a couple of remote files exist, and copy one file over the other (both remote) copy files from a local drive (accessed with local username / permissions) to a remote drive (accessed with the alternate credentials) As far as I can tell FSO (Scripting.FileSystemObject) is out of the picture, because it always runs with

File.Exists returning false from a network share

拜拜、爱过 提交于 2019-11-26 16:58:03
问题 I've been working on a ASP.NET project that is going to save uploaded files to a network share. I figured I could just use a virtual directory and be fine, but I have been struggling with permissions for Directory.CreateDirectory. I was able to upload files so I decided to change my code to place everything in a single directory, however this requires me to make use of File.Exists to avoid overwriting duplicates. Now that I have all my code updated, I have discovered that no matter what I do,